endpoint

package
v0.0.0-...-aec1c34 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateAccountEndpoint

func MakeCreateAccountEndpoint(s service.IAuthNService) endpoint.Endpoint

func MakeDeleteAccountEndpoint

func MakeDeleteAccountEndpoint(s service.IAuthNService) endpoint.Endpoint

func MakeListAccountEndpoint

func MakeListAccountEndpoint(s service.IAuthNService) endpoint.Endpoint

func MakeLoginEndpoint

func MakeLoginEndpoint(s service.IAuthNService) endpoint.Endpoint

func NewJWTTokenParsingMW

func NewJWTTokenParsingMW(secretKey string) kitep.Middleware

Types

type Endpoints

type Endpoints struct {
	LoginEndpoint endpoint.Endpoint
	// RenewAccessTokenEndpoint endpoint.Endpoint
	// VerifyTokenEndpoint      endpoint.Endpoint
	// RevokeTokenEndpoint      endpoint.Endpoint
	CreateAccountEndpoint endpoint.Endpoint
	ListAccountEndpoint   endpoint.Endpoint
	// GetUserEndpoint          endpoint.Endpoint
	// UpdateUserEndpoint       endpoint.Endpoint
	DeleteAccountEndpoint endpoint.Endpoint
}

Endpoints collects all of the endpoints that compose a profile service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.

func New

New returns a Endpoints struct that wraps the provided service, and wires in all of the expected endpoint middlewares

Jump to

Keyboard shortcuts

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