token

package
v0.0.0-...-3898045 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerateTokenEndpoint

func NewGenerateTokenEndpoint(svc token.Service) endpoint.Endpoint

func NewLoggingMiddleware

func NewLoggingMiddleware(logger log.Logger) endpoint.Middleware

func NewValidateTokenEndpoint

func NewValidateTokenEndpoint(svc token.Service) endpoint.Endpoint

Types

type GenerateTokenRequest

type GenerateTokenRequest struct {
	ExpiresIn time.Duration
	Claims    map[string]interface{}
}

type GenerateTokenResponse

type GenerateTokenResponse struct {
	Result string
	Error  error
}

type ValidateTokenRequest

type ValidateTokenRequest struct {
	Token string
}

type ValidateTokenResponse

type ValidateTokenResponse struct {
	Result map[string]interface{}
	Error  error
}

Jump to

Keyboard shortcuts

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