gdconf

package
v0.0.0-...-7424bbb Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IsDebug IsDebug
	IsDebug = false

	// LogFlag LogFlag
	LogFlag = log.LstdFlags

	// PingTime PingTime
	PingTime = 2 * time.Minute

	// SessionLiveTime SessionLiveTime
	SessionLiveTime = 1 * time.Second

	// PendingWriteNum PendingWriteNum
	PendingWriteNum = 4000

	// MaxMsgLen MaxMsgLen
	MaxMsgLen uint32 = 4096

	// HTTPTimeout HTTPTimeout
	HTTPTimeout = 10 * time.Second

	// LenMsgLen LenMsgLen
	LenMsgLen = 2

	// LittleEndian LittleEndian
	LittleEndian = true

	// GoLen GoLen
	GoLen = 10000

	// TimerDispatcherLen TimerDispatcherLen
	TimerDispatcherLen = 10000

	// AsynCallLen AsynCallLen
	AsynCallLen = 10000

	// ChanRPCLen ChanRPCLen
	ChanRPCLen = 10000

	// MainLoopDelay MainLoopDelay
	MainLoopDelay = 500 * time.Millisecond
)
View Source
var AppSetting struct {
	GameID       int      `json:"gameId"`
	ServerID     int      `json:"serverId"`
	DBConnURL    string   `json:"dbConnURL"`
	DBConnNum    int      `json:"dbConnNum"`
	DBGlobalName string   `json:"dbGlobalName"`
	LogLevel     string   `json:"logLevel"`
	LogPath      string   `json:"logPath"`
	MainModName  string   `json:"mainModName"`
	RunMods      []string `json:"runMods"`
}

AppSetting AppSetting

Functions

This section is empty.

Types

type RFRecord

type RFRecord struct {
	*recordfile.RecordFile
}

RFRecord RFRecord

func NewRFRecord

func NewRFRecord(item interface{}) (*RFRecord, error)

NewRFRecord NewRFRecord

func (*RFRecord) Count

func (its *RFRecord) Count() uint

Count Count

func (*RFRecord) GetByIndex

func (its *RFRecord) GetByIndex(id interface{}) (interface{}, error)

GetByIndex GetByIndex

func (*RFRecord) GetByIndexes

func (its *RFRecord) GetByIndexes(index, id interface{}) (interface{}, error)

GetByIndexes GetByIndexes

func (*RFRecord) Index

func (its *RFRecord) Index(_, _ interface{}) error

Index Index

func (*RFRecord) Indexes

func (its *RFRecord) Indexes(_, _, _ interface{}) error

Indexes Indexes

func (*RFRecord) Iterator

func (its *RFRecord) Iterator(_, fun interface{}) error

Iterator Iterator

func (*RFRecord) IteratorByIndex

func (its *RFRecord) IteratorByIndex(_, id, fun interface{}) error

IteratorByIndex IteratorByIndex

func (*RFRecord) Read

func (its *RFRecord) Read(value interface{}) error

Read Read

func (*RFRecord) Remove

func (its *RFRecord) Remove(_ bool, _ ...interface{}) error

Remove Remove

func (*RFRecord) Write

func (its *RFRecord) Write(_ bool, _ ...interface{}) error

Write Write

type Record

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

Record Record

func NewRecord

func NewRecord(item interface{}) (*Record, error)

NewRecord NewRecord

func (*Record) Count

func (its *Record) Count() uint

Count Count

func (*Record) GetByIndex

func (its *Record) GetByIndex(id interface{}) (interface{}, error)

GetByIndex GetByIndex

func (*Record) GetByIndexes

func (its *Record) GetByIndexes(index, id interface{}) (interface{}, error)

GetByIndexes GetByIndexes

func (*Record) Index

func (its *Record) Index(_, _ interface{}) error

Index Index

func (*Record) Indexes

func (its *Record) Indexes(_, _, _ interface{}) error

Indexes Indexes

func (*Record) Iterator

func (its *Record) Iterator(_, fun interface{}) error

Iterator Iterator

func (*Record) IteratorByIndex

func (its *Record) IteratorByIndex(_, id, fun interface{}) error

IteratorByIndex IteratorByIndex

func (*Record) Read

func (its *Record) Read(value interface{}) error

Read Read

func (*Record) Remove

func (its *Record) Remove(_ bool, _ ...interface{}) error

Remove Remove

func (*Record) Write

func (its *Record) Write(_ bool, _ ...interface{}) error

Write Write

type TxtLoader

type TxtLoader struct {
}

TxtLoader TxtLoader

func (*TxtLoader) LoadAll

func (its *TxtLoader) LoadAll(reader gdio.IReader) (err error)

LoadAll LoadAll

Jump to

Keyboard shortcuts

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