Versions in this module Expand all Collapse all v0 v0.0.2 Jul 8, 2025 v0.0.1 Jul 1, 2025 Changes in this version + var ProviderSet = wire.NewSet(NewUserMongoRepo, NewUserProtoCache) + func NewUserMongoRepo(data *mongodb.DB, logger log.Logger) (r domain.UserRepo, err error) + func NewUserPostgresRepo(data *postgresdb.DB, logger log.Logger) (domain.UserRepo, error) + func NewUserProtoCache() domain.UserCache + func TestNewUserPostgresRepo(data *postgresdb.DB, logger log.Logger, mods []life.ModuleKey) (domain.UserRepo, error) + type UserProtoCache struct + func (c *UserProtoCache) Get(ctx context.Context, uid int64, ctime time.Time) (ret *dbv1.UserProto) + func (c *UserProtoCache) Put(ctx context.Context, uid int64, user *dbv1.UserProto, ctime time.Time) + func (c *UserProtoCache) Remove(ctx context.Context, uid int64)