Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationService ¶
type AuthenticationService interface { // Add your methods here // e.x: Foo(ctx context.Context,s string)(rs string, err error) Get(ctx context.Context) (t []io.User, error error) Create(ctx context.Context, user io.User) (t io.User, error error) Authenticate(ctx context.Context) (error error) }
AuthenticationService describes the service.
func New ¶
func New(middleware []Middleware) AuthenticationService
New returns a AuthenticationService with all of the expected middleware wired in.
func NewBasicAuthenticationService ¶
func NewBasicAuthenticationService() AuthenticationService
NewBasicAuthenticationService returns a naive, stateless implementation of AuthenticationService.
type Middleware ¶
type Middleware func(AuthenticationService) AuthenticationService
Middleware describes a service middleware.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a AuthenticationService Middleware.
Click to show internal directories.
Click to hide internal directories.