data

package
v0.0.0-...-86dbffa Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT, MIT Imports: 19 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewEntClient

func NewEntClient(conf *conf.Data, logger log.Logger) *ent.Client

func NewGameRepo

func NewGameRepo(data *Data, logger log.Logger) biz.GameRepo

func NewKafkaProducer

func NewKafkaProducer(conf *conf.Data, logger log.Logger) event.Sender

func NewRedisClient

func NewRedisClient(conf *conf.Data, logger log.Logger) *redis.Client

Types

type Data

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

Data .

func NewData

func NewData(entClient *ent.Client, redisClient *redis.Client, producer event.Sender, logger log.Logger) (*Data, func(), error)

NewData

type GameEntry

type GameEntry struct {
	GameId      int64  `json:"game_id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Count       int64  `json:"count,omitempty"`
}

type GameList

type GameList struct {
	PageNum  int64 `json:"page_num,omitempty"`
	PageSize int64 `json:"page_size,omitempty"`
}

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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