data

package
v0.0.0-...-58fd0e2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewUserRepository

func NewUserRepository(appCtx *system.AppContext, data *Data) biz.UserRepository

Types

type Data

type Data struct {
	Client *ent.Client
}

func NewData

func NewData(conf *koanf.Koanf) (*Data, error)

type RedisClient

type RedisClient struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(conf *koanf.Koanf, app *system.AppContext) (*RedisClient, error)

func (*RedisClient) CachedExpire

func (rc *RedisClient) CachedExpire(key string, expir time.Duration) (existed bool)

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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