data

package
v0.0.0-...-31da580 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 14 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewAccountRepo

func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo

NewAccountRepo .

func NewCacheClient

func NewCacheClient(c *conf.Data) cache.Cache

func NewDbClient

func NewDbClient(c *conf.Data) (orm.Conn, error)

func NewDiscovery

func NewDiscovery(conf *conf.Registry) (registry.Discovery, error)

func NewRedisClient

func NewRedisClient(c *conf.Redis) (*redis.Client, error)

func NewRegistrar

func NewRegistrar(conf *conf.Registry) (registry.Registrar, error)

Types

type Data

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

Data .

func NewData

func NewData(c *conf.Data, client orm.Conn, logger log.Logger) (*Data, func(), error)

NewData .

func (*Data) GetDb

func (d *Data) GetDb(ctx context.Context) *xorm.Session

Jump to

Keyboard shortcuts

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