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
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 ¶
type KeysClient interface { Auth(in *keys.AuthRequest) (*keys.AuthResponse, error) Register(in *keys.RegisterRequest) (*keys.RegisterResponse, error) UpdateKeys(in *keys.UpdateKeysRequest) (*keys.UpdateKeysResponse, error) ListKeys(in *keys.ListKeysRequest) ([]*keys.ListKeysResponse, error) DelKeys(in *keys.DelKeysRequest) (*keys.DelKeysResponse, error) PublicKeys(in *keys.PublicKeysRequest) (*keys.PublicKeysResponse, error) }
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
Click to show internal directories.
Click to hide internal directories.