data

package
v0.0.0-...-596c4a4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetData = wire.NewSet(New)

ProviderSetData is a set of data providers.

Functions

This section is empty.

Types

type Data

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

func New

func New(c *conf.Bootstrap, logger log.Logger) (*Data, func(), error)

New a data and returns.

func (*Data) FirstServerConn

func (d *Data) FirstServerConn(serverType vobj.ServerType) (*bo.Server, bool)

func (*Data) GetBizDB

func (d *Data) GetBizDB(teamID uint32) (gorm.DB, error)

func (*Data) GetCache

func (d *Data) GetCache() cache.Cache

func (*Data) GetEventDB

func (d *Data) GetEventDB(teamID uint32) (gorm.DB, error)

func (*Data) GetMainDB

func (d *Data) GetMainDB() gorm.DB

func (*Data) GetServerConn

func (d *Data) GetServerConn(serverType vobj.ServerType, id string) (*bo.Server, bool)

func (*Data) RemoveServerConn

func (d *Data) RemoveServerConn(serverType vobj.ServerType, id string)

func (*Data) SetServerConn

func (d *Data) SetServerConn(serverType vobj.ServerType, id string, conn *bo.Server)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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