data

package
v0.0.0-...-c6647e5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDiscovery

func NewDiscovery() registry.Discovery

func NewOrm

func NewOrm(logger log.Logger, bootstrap *conf.Bootstrap) *gorm.DB

func NewRedisCmd

func NewRedisCmd(conf *conf.Data, logger log.Logger) redis.Cmdable

func NewRegistrar

func NewRegistrar() registry.Registrar

func NewUserRepo

func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo

Types

type Data

type Data struct {
	ORM *gorm.DB
	// contains filtered or unexported fields
}

func NewData

func NewData(orm *gorm.DB, redisCmd redis.Cmdable, logger log.Logger) (*Data, func(), error)

NewData .

Jump to

Keyboard shortcuts

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