client

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxRecvMsgSize defines the default maximum message size for
	// receiving protobufs passed over the GRPC API.
	DefaultMaxRecvMsgSize = 16 << 20
	// DefaultMaxSendMsgSize defines the default maximum message size for
	// sending protobufs passed over the GRPC API.
	DefaultMaxSendMsgSize = 16 << 20
)

Variables

View Source
var (
	// ErrConnRefused describes connection refused error
	ErrConnRefused = errors.New("failed to dial server: connection refused")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	VersionClient
	KeysClient
	JWTClient
}

Client is the client to interact with jwtis and its various services using a uniform interface

func New

func New(addr string, copts ...grpc.DialOption) (Client, error)

New returns configured client

type JWTClient

type JWTClient interface {
	NewJWT(in *jwt.NewJWTRequest) (*jwt.NewJWTResponse, error)
	RenewJWT(in *jwt.RenewJWTRequest) (*jwt.RenewJWTResponse, error)
	RevokeJWT(in *jwt.RevokeJWTRequest) (*jwt.RevokeJWTResponse, error)
}

JWTClient is client interface to interact with jwt service

type KeysClient

KeysClient is client interface to interact with keys service

type VersionClient

type VersionClient interface {
	Version() (*apiVersion.VersionResponse, error)
}

VersionClient is client interface to interact with version service

Jump to

Keyboard shortcuts

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