repository

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	// GetByToken return an authorized user by a valid access token.
	GetByToken(ctx context.Context, token string) (model.User, error)
}

type MockAuth

type MockAuth struct {
	mock.Mock
}

MockAuth is an autogenerated mock type for the Auth type

func (*MockAuth) EXPECT

func (_m *MockAuth) EXPECT() *MockAuth_Expecter

func (*MockAuth) GetByToken

func (_m *MockAuth) GetByToken(ctx context.Context, token string) (model.User, error)

GetByToken provides a mock function with given fields: ctx, token

type MockAuth_Expecter

type MockAuth_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockAuth_Expecter) GetByToken

func (_e *MockAuth_Expecter) GetByToken(ctx interface{}, token interface{}) *MockAuth_GetByToken_Call

GetByToken is a helper method to define mock.On call

  • ctx context.Context
  • token string

type MockAuth_GetByToken_Call

type MockAuth_GetByToken_Call struct {
	*mock.Call
}

MockAuth_GetByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByToken'

func (*MockAuth_GetByToken_Call) Return

func (*MockAuth_GetByToken_Call) Run

type MockSubject

type MockSubject struct {
	mock.Mock
}

MockSubject is an autogenerated mock type for the Subject type

func (*MockSubject) EXPECT

func (_m *MockSubject) EXPECT() *MockSubject_Expecter

func (*MockSubject) Get

func (_m *MockSubject) Get(ctx context.Context, id uint32) (model.Subject, error)

Get provides a mock function with given fields: ctx, id

type MockSubject_Expecter

type MockSubject_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockSubject_Expecter) Get

func (_e *MockSubject_Expecter) Get(ctx interface{}, id interface{}) *MockSubject_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

type MockSubject_Get_Call

type MockSubject_Get_Call struct {
	*mock.Call
}

MockSubject_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockSubject_Get_Call) Return

func (*MockSubject_Get_Call) Run

func (_c *MockSubject_Get_Call) Run(run func(ctx context.Context, id uint32)) *MockSubject_Get_Call

type Subject

type Subject interface {
	// Get return a subject model.
	Get(ctx context.Context, id uint32) (model.Subject, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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