store

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStore

func SetStore(storeIns IStore)

SetStore 设置 Store 实例.

Types

type IStore

type IStore interface {
	Users() UserStore
	Close() error
}

IStore 定义了 Store 层接口.

func Store

func Store() IStore

Store 获取 Store 实例.

type UserStore

type UserStore interface {
	Create(ctx context.Context, user *user.User) error
	Update(ctx context.Context, user *user.User) error
	Get(ctx context.Context, username string) (*user.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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