inject-thrift-client


License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.twitter
ArtifactId

ArtifactId

inject-thrift-client_2.11
Last Version

Last Version

21.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

inject-thrift-client
inject-thrift-client
Project URL

Project URL

https://github.com/twitter/finatra
Project Organization

Project Organization

com.twitter

Download inject-thrift-client_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.twitter/inject-thrift-client_2.11/ -->
<dependency>
    <groupId>com.twitter</groupId>
    <artifactId>inject-thrift-client_2.11</artifactId>
    <version>21.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.twitter/inject-thrift-client_2.11/
implementation 'com.twitter:inject-thrift-client_2.11:21.2.0'
// https://jarcasting.com/artifacts/com.twitter/inject-thrift-client_2.11/
implementation ("com.twitter:inject-thrift-client_2.11:21.2.0")
'com.twitter:inject-thrift-client_2.11:jar:21.2.0'
<dependency org="com.twitter" name="inject-thrift-client_2.11" rev="21.2.0">
  <artifact name="inject-thrift-client_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.twitter', module='inject-thrift-client_2.11', version='21.2.0')
)
libraryDependencies += "com.twitter" % "inject-thrift-client_2.11" % "21.2.0"
[com.twitter/inject-thrift-client_2.11 "21.2.0"]

Dependencies

compile (12)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
com.twitter : inject-core_2.11 jar 21.2.0
com.twitter : inject-utils_2.11 jar 21.2.0
com.twitter : inject-app_2.11 jar 21.2.0
com.twitter : inject-modules_2.11 jar 21.2.0
com.twitter : inject-thrift_2.11 jar 21.2.0
com.twitter : finatra-utils_2.11 jar 21.2.0
org.scala-lang.modules : scala-collection-compat_2.11 jar 2.1.2
junit : junit jar 4.12
com.twitter : finagle-thrift_2.11 jar 21.2.0
com.twitter : finagle-thriftmux_2.11 jar 21.2.0
com.github.nscala-time : nscala-time_2.11 jar 2.22.0

test (7)

Group / Artifact Type Version
com.twitter : finatra-http_2.11 jar 21.2.0
com.twitter : finatra-thrift_2.11 jar 21.2.0
org.scalacheck : scalacheck_2.11 jar 1.14.3
org.scalatest : scalatest_2.11 jar 3.1.2
org.scalatestplus : junit-4-12_2.11 jar 3.1.2.0
org.scalatestplus : scalacheck-1-14_2.11 jar 3.1.2.0
com.twitter : finagle-http_2.11 jar 21.2.0

Project Modules

There are no modules declared in this project.

Finatra

Build Status Test Coverage Project status Maven Central Gitter

Status

This project is used in production at Twitter (and many other organizations), and is being actively developed and maintained.

Finatra Logo

Finatra is a lightweight framework for building fast, testable, scala applications on top of TwitterServer and Finagle. Finatra provides an easy-to-use API for creating and testing Finagle servers and apps as well as powerful JSON support, modern logging via SLF4J, Finagle client utilities, and more.

Getting involved

Features

Documentation

To get started, see the Getting Started section of our User Guide to get up and running. Or check out the specific sections for building HTTP or Thrift servers.

Examples

An HTTP controller and server:

import com.twitter.finatra.http._

@Singleton
class ExampleController extends Controller {
  get("/") { request: Request =>
    "<h1>Hello, world!</h1>"
  }
}
import com.twitter.finatra.http._

class ExampleServer extends HttpServer {
  override def configureHttp(router: HttpRouter): Unit = {
    router
      .filter[CommonFilters]
      .add[ExampleController]
  }
}

A Thrift controller and server:

import com.twitter.finatra.thrift._
import com.twitter.scrooge.{Request, Response}

@Singleton
class ExampleThriftController
  extends Controller(MyThriftService) {

  handle(MyFunction).withFn { request: Request[MyFunction.Args] =>
    ...
  }
}
import com.twitter.finatra.thrift._

class ExampleServer extends ThriftServer {
  override def configureThrift(router: ThriftRouter): Unit = {
    router
      .add[ExampleThriftController]
  }
}

Example Projects

Finatra includes working examples which highlight various features of the framework and include tests. These examples are included in the root sbt build and are thus buildable as part of the entire project.

Please take a look through the examples for more detailed information on features, testing, building, and running.

Latest version

The release branch in Github tracks the latest stable release, which is currently:

Maven Central

available on Maven Central. See the First Steps section in the User Guide for how to add dependencies.

Releases are done on an approximately monthly schedule. While semver is not followed, the changelogs are detailed and include sections on public API breaks and changes in runtime behavior.

Development version

The develop branch in Github tracks the latest code which is updated every week. If you want to contribute a patch or fix, please use this branch as the basis of your Pull Request.

For more information on providing contributions, please see our CONTRIBUTING.md documentation.

Presentations

Check out our list of presentations: Finatra Presentations.

Authors

A full list of contributors can be found on GitHub.

Follow @finatra on Twitter for updates.

License

Copyright 2013 Twitter, Inc.

Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0

com.twitter

Twitter

Twitter 💙 #opensource

Versions

Version
21.2.0
21.1.0
20.12.0
20.10.0
20.9.0
20.8.1
20.8.0
20.7.0
20.6.0
20.5.0
20.4.1
20.4.0
20.3.0
20.1.0
19.12.0
19.11.0
19.10.0
19.9.0
19.8.0
19.7.0
19.6.0
19.5.1
19.5.0
19.4.0
19.3.0
19.2.0
19.1.0
18.12.0
18.11.0
18.10.0
18.9.1
18.9.0
18.8.0
18.7.0
18.6.0
18.5.0
18.4.0
18.3.0
18.2.0
18.1.0
17.12.0
17.11.0
17.10.0
2.13.0
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0