drivers

package
v0.0.0-...-0a9cbe0 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

View Source
var ErrInvalidConfigStruct = errors.New("invalid config structure")

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	Name() string
	Close() error
	Connect() error
	UserRepo
}

type UserRepo

type UserRepo interface {
	GetUsers(ctx context.Context) ([]*entity.User, error)
	GetUserByID(ctx context.Context, id int) (user *entity.User, err error)
	CreateUser(ctx context.Context, user *entity.User) (int, error)
	GetUserByEmail(ctx context.Context, email string) (*entity.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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