bandiera-client-scala

scala client for bandiera feature flags service. communicate with the rest api of a bandiera server. only GET operations are implemented.

License

License

MIT
Categories

Categories

Scala Languages CLI User Interface
GroupId

GroupId

com.springernature
ArtifactId

ArtifactId

bandiera-client-scala_2.13
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

bandiera-client-scala
scala client for bandiera feature flags service. communicate with the rest api of a bandiera server. only GET operations are implemented.
Project URL

Project URL

https://github.com/springernature/bandiera-client-scala
Project Organization

Project Organization

com.springernature
Source Code Management

Source Code Management

https://github.com/springernature/bandiera-client-scala

Download bandiera-client-scala_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.springernature/bandiera-client-scala_2.13/ -->
<dependency>
    <groupId>com.springernature</groupId>
    <artifactId>bandiera-client-scala_2.13</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.springernature/bandiera-client-scala_2.13/
implementation 'com.springernature:bandiera-client-scala_2.13:0.3.1'
// https://jarcasting.com/artifacts/com.springernature/bandiera-client-scala_2.13/
implementation ("com.springernature:bandiera-client-scala_2.13:0.3.1")
'com.springernature:bandiera-client-scala_2.13:jar:0.3.1'
<dependency org="com.springernature" name="bandiera-client-scala_2.13" rev="0.3.1">
  <artifact name="bandiera-client-scala_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.springernature', module='bandiera-client-scala_2.13', version='0.3.1')
)
libraryDependencies += "com.springernature" % "bandiera-client-scala_2.13" % "0.3.1"
[com.springernature/bandiera-client-scala_2.13 "0.3.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1
com.softwaremill.sttp : core_2.13 jar [1.6.0, 2.0)
com.softwaremill.sttp : async-http-client-backend-future_2.13 jar [1.6.0, 2.0)
com.lihaoyi : upickle_2.13 jar [0.6, 1.0)

test (1)

Group / Artifact Type Version
com.lihaoyi : utest_2.13 jar [0.6, 1.0)

Project Modules

There are no modules declared in this project.

Bandiera Client (Scala)

This is a client for talking to the Bandiera feature flagging service from a Scala application. This client currently only implements the read methods of the v2 Bandiera API.

MIT licensed

Installation

supported scala versions: 2.11.x, 2.12.x, 2.13.x

in build.sbt add the dependency:

"com.springernature" %% "bandiera-client-scala" % "0.3.1"

Usage

Create an instance of the bandiera client:

import com.springernature.bandieraclientscala._

val client = new BandieraClient()

Options

you can initialize BandieraClient with:

notice: BandieraClient expects to have an ExecutionContext implicitly available in scope.

  • either import scala.concurrent.ExecutionContext.Implicits.global
  • or provide an ExecutionContext in second constructor params group: new BandieraClient(...)(ec = yourExecutor)

Contributing

If you would like to contribute please make sure that the tests pass and that the code lints successfully.

License

Copyright © 2020 Springer Nature. Scala Bandiera client is licensed under the MIT License.

com.springernature

Springer Nature

Versions

Version
0.3.1
0.3.0