auth

package
v0.0.0-...-d451a21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct{}

func (*AuthService) Authenticate

func (service *AuthService) Authenticate(
	credentials IUserCredentials,
) (interface{}, bool)

type IAuthService

type IAuthService interface {
	Authenticate(IUserCredentials) (interface{}, bool)
}

func NewAuthService

func NewAuthService() IAuthService

type IUserCredentials

type IUserCredentials interface {
	GetUsername() string
	GetPassword() string
}

Jump to

Keyboard shortcuts

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