hydraclient

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 5 Imported by: 0

README

Actions Status GoDoc Go Report Card Coverage

ory-hydra-client

Getting Started

Prerequisites

What things you need to setup the project:

Environment

Close the repository:

git clone git@github.com:lab259/ory-hydra-client.git

Now, the dependencies must be installed.

cd ory-hydra-client && go mod download

😉 Finally, you are done to start developing.

Running tests

In the src/github.com/lab259/ory-hydra-client directory, execute:

make test

To enable coverage, execute:

make coverage

To generate the HTML coverage report, execute:

make coverage coverage-html

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHystrixTransport

func NewHystrixTransport(client *hystrix.Client) http.RoundTripper

NewHystrixTransport returns a http.RoundTripper implementation that uses a hydrix.Client.

Types

type Client

type Client struct {
	admin.Client
	// contains filtered or unexported fields
}

Client is the hydra client implementation.

func New

func New(opts ...Option) *Client

New returns a new instance of hydra Client.

type Option

type Option func(c *Client)

Option represents the hydra client options.

func WithHystrixClient

func WithHystrixClient(client *hystrix.Client) Option

WithHystrixClient creates an option that will define the `hystrix.Client` when creating a new `Client`.

func WithURL

func WithURL(u *url.URL) Option

WithURL creates an option that defines a host name for the Hydra server.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL