Documentation ¶
Index ¶
- func NewGenerateTokenHandler(generateTokenEndpoint endpoint.Endpoint) grpcTransport.Handler
- func NewTokenServer(generateTokenEndpoint, validateTokenEndpoint endpoint.Endpoint) pb.TokenServer
- func NewValidateTokenHandler(validateTokenEndpoint endpoint.Endpoint) grpcTransport.Handler
- func RegisterRoutes(s *grpc.Server, generateTokenEndpoint, validateTokenEndpoint endpoint.Endpoint)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerateTokenHandler ¶
func NewGenerateTokenHandler(generateTokenEndpoint endpoint.Endpoint) grpcTransport.Handler
func NewTokenServer ¶
func NewTokenServer(generateTokenEndpoint, validateTokenEndpoint endpoint.Endpoint) pb.TokenServer
func NewValidateTokenHandler ¶
func NewValidateTokenHandler(validateTokenEndpoint endpoint.Endpoint) grpcTransport.Handler
Types ¶
type Error ¶
Error is grpc transport error structure
func TranslateError ¶
TranslateError translate service error to grpc transport error. panics on passing inappropriate error
Click to show internal directories.
Click to hide internal directories.