Documentation
¶
Index ¶
- func MakeGetSecretTypeEndpoint(service secrettype.Service) endpoint.Endpoint
- func MakeListSecretTypesEndpoint(service secrettype.Service) endpoint.Endpoint
- func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
- type Endpoints
- type GetSecretTypeRequest
- type GetSecretTypeResponse
- type ListSecretTypesRequest
- type ListSecretTypesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGetSecretTypeEndpoint ¶
func MakeGetSecretTypeEndpoint(service secrettype.Service) endpoint.Endpoint
MakeGetSecretTypeEndpoint returns an endpoint for the matching method of the underlying service.
func MakeListSecretTypesEndpoint ¶
func MakeListSecretTypesEndpoint(service secrettype.Service) endpoint.Endpoint
MakeListSecretTypesEndpoint returns an endpoint for the matching method of the underlying service.
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
RegisterHTTPHandlers mounts all of the service endpoints into an http.Handler.
Types ¶
type Endpoints ¶
Endpoints collects all of the endpoints that compose the underlying service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.
func MakeEndpoints ¶
func MakeEndpoints(service secrettype.Service, middleware ...endpoint.Middleware) Endpoints
MakeEndpoints returns a(n) Endpoints struct where each endpoint invokes the corresponding method on the provided service.
type GetSecretTypeRequest ¶
type GetSecretTypeRequest struct {
SecretType string
}
GetSecretTypeRequest is a request struct for GetSecretType endpoint.
type GetSecretTypeResponse ¶
type GetSecretTypeResponse struct { SecretTypeDef secrettype.TypeDefinition Err error }
GetSecretTypeResponse is a response struct for GetSecretType endpoint.
func (GetSecretTypeResponse) Failed ¶
func (r GetSecretTypeResponse) Failed() error
type ListSecretTypesRequest ¶
type ListSecretTypesRequest struct{}
ListSecretTypesRequest is a request struct for ListSecretTypes endpoint.
type ListSecretTypesResponse ¶
type ListSecretTypesResponse struct { SecretTypes map[string]secrettype.TypeDefinition Err error }
ListSecretTypesResponse is a response struct for ListSecretTypes endpoint.
func (ListSecretTypesResponse) Failed ¶
func (r ListSecretTypesResponse) Failed() error