dao

package
v0.0.0-...-e417875 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 MetaDAO

type MetaDAO interface {
	// Create ...
	Create(ctx context.Context, oidcUser *models.OIDCUser) (int, error)
	// GetByUsername get the oidc meta record by the user's username
	GetByUsername(ctx context.Context, username string) (*models.OIDCUser, error)
	// DeleteByUserID delete the oidc metadata by user id
	DeleteByUserID(ctx context.Context, uid int) error
	// Update ...
	Update(ctx context.Context, oidcUser *models.OIDCUser, props ...string) error
	// List provides a way to query with flexible filter
	List(ctx context.Context, query *q.Query) ([]*models.OIDCUser, error)
}

MetaDAO is the data access object for OIDC user meta

func NewMetaDao

func NewMetaDao() MetaDAO

NewMetaDao returns an instance of the default MetaDAO

Jump to

Keyboard shortcuts

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