data

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewUserMongoRepo

func NewUserMongoRepo(data *mongo.Database, logger log.Logger) (r domain.UserRepo, err error)

func NewUserPostgresRepo

func NewUserPostgresRepo(data *pg.DB, logger log.Logger) (domain.UserRepo, error)

func NewUserProtoCache

func NewUserProtoCache() domain.UserCache

func TestNewUserPostgresRepo

func TestNewUserPostgresRepo(data *pg.DB, logger log.Logger, mods []life.ModuleKey) (domain.UserRepo, error)

Types

type UserProtoCache

type UserProtoCache struct {
	// contains filtered or unexported fields
}

func (*UserProtoCache) Get

func (c *UserProtoCache) Get(ctx context.Context, uid int64, ctime time.Time) (ret *dbv1.UserProto)

func (*UserProtoCache) Put

func (c *UserProtoCache) Put(ctx context.Context, uid int64, user *dbv1.UserProto, ctime time.Time)

func (*UserProtoCache) Remove

func (c *UserProtoCache) Remove(ctx context.Context, uid int64)

Jump to

Keyboard shortcuts

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