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 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntClient

func NewEntClient(conf *conf.Data) *ent.Client

func NewGameRepo

func NewGameRepo(data *Data) biz.GameRepo

func NewRedisClient

func NewRedisClient(conf *conf.Data) *redis.Client

Types

type Data

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

Data .

func NewData

func NewData(entClient *ent.Client, redisClient *redis.Client) (*Data, func(), error)

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