dao

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 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 (*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