dao

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaDAO

type MetaDAO struct {
	mock.Mock
}

MetaDAO is an autogenerated mock type for the MetaDAO type

func NewMetaDAO

func NewMetaDAO(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetaDAO

NewMetaDAO creates a new instance of MetaDAO. 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 (*MetaDAO) Create

func (_m *MetaDAO) Create(ctx context.Context, oidcUser *models.OIDCUser) (int, error)

Create provides a mock function with given fields: ctx, oidcUser

func (*MetaDAO) DeleteByUserID

func (_m *MetaDAO) DeleteByUserID(ctx context.Context, uid int) error

DeleteByUserID provides a mock function with given fields: ctx, uid

func (*MetaDAO) GetByUsername

func (_m *MetaDAO) GetByUsername(ctx context.Context, username string) (*models.OIDCUser, error)

GetByUsername provides a mock function with given fields: ctx, username

func (*MetaDAO) List

func (_m *MetaDAO) List(ctx context.Context, query *q.Query) ([]*models.OIDCUser, error)

List provides a mock function with given fields: ctx, query

func (*MetaDAO) Update

func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props ...string) error

Update provides a mock function with given fields: ctx, oidcUser, props

Jump to

Keyboard shortcuts

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