mocks

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func NewAuthenticator

func NewAuthenticator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Authenticator

NewAuthenticator creates a new instance of Authenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Authenticator) Callback

func (_m *Authenticator) Callback(_a0 func(interface{}) (*jwt.TokenDetails, errors.Error)) http.HandlerFunc

Callback provides a mock function with given fields: _a0

func (*Authenticator) GetTokenByUserID added in v1.0.26

func (_m *Authenticator) GetTokenByUserID(userId string) (*xoauth2.Token, errors.Error)

GetTokenByUserID provides a mock function with given fields: userId

func (*Authenticator) RequestAuth

func (_m *Authenticator) RequestAuth() http.HandlerFunc

RequestAuth provides a mock function with given fields:

Jump to

Keyboard shortcuts

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