repos

package
v0.0.0-...-e37d8fb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyRepo

type KeyRepo struct {
	Conn *gorm.DB
}

func NewKeyRepo

func NewKeyRepo(conn *gorm.DB) *KeyRepo

func (KeyRepo) Create

func (r KeyRepo) Create(ctx context.Context, entity *schema.Key) error

func (KeyRepo) First

func (r KeyRepo) First(ctx context.Context, key string) (*schema.Key, error)

type UserRepo

type UserRepo struct {
	Conn *gorm.DB
}

func NewUserRepo

func NewUserRepo(conn *gorm.DB) *UserRepo

func (UserRepo) Create

func (r UserRepo) Create(ctx context.Context, entity *schema.User) error

Jump to

Keyboard shortcuts

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