mocks

package
v0.0.0-...-1f6e3fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidUser

func ValidUser() *auth.User

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func (*Authenticator) Login

func (_m *Authenticator) Login(ctx context.Context, username string, password string) (*auth.User, error)

Login provides a mock function with given fields: ctx, username, password

func (*Authenticator) Register

func (_m *Authenticator) Register(ctx context.Context, user *auth.User) error

Register provides a mock function with given fields: ctx, user

type SessionSigner

type SessionSigner struct {
	mock.Mock
}

SessionSigner is an autogenerated mock type for the SessionSigner type

func (*SessionSigner) SignUser

func (_m *SessionSigner) SignUser(identifier string) (string, error)

SignUser provides a mock function with given fields: identifier

func (*SessionSigner) Validate

func (_m *SessionSigner) Validate(token string) (string, error)

Validate provides a mock function with given fields: token

Jump to

Keyboard shortcuts

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