Documentation
¶
Index ¶
- Constants
- func WithTables(ctx context.Context, t *TableHolder) context.Context
- type Complex
- type ComplexA
- type ComplexTable
- func (t *ComplexTable) Find(id int32) (*Complex, bool)
- func (t *ComplexTable) GetRows() interface{}
- func (t *ComplexTable) Load(data []byte) error
- func (t *ComplexTable) LoadFromFile(basePath string) error
- func (t *ComplexTable) LoadFromString(jsonString string) error
- func (t *ComplexTable) TableName() string
- type Reward
- type RewardParamValue
- type SKU
- type TableBase
- type TableHolder
- type Types
- type TypesTable
Constants ¶
View Source
const ( ComplexName = "complex" TypesName = "types" )
Variables ¶
This section is empty.
Functions ¶
func WithTables ¶
func WithTables(ctx context.Context, t *TableHolder) context.Context
Types ¶
type ComplexTable ¶
type ComplexTable struct {
Rows []Complex
}
func GetComplexTable ¶ added in v0.0.5
func GetComplexTable() *ComplexTable
func (*ComplexTable) GetRows ¶
func (t *ComplexTable) GetRows() interface{}
func (*ComplexTable) Load ¶
func (t *ComplexTable) Load(data []byte) error
func (*ComplexTable) LoadFromFile ¶
func (t *ComplexTable) LoadFromFile(basePath string) error
func (*ComplexTable) LoadFromString ¶
func (t *ComplexTable) LoadFromString(jsonString string) error
func (*ComplexTable) TableName ¶ added in v0.0.5
func (t *ComplexTable) TableName() string
type Reward ¶
type Reward struct {
Type string `json:"Type"`
ParamValue RewardParamValue `json:"ParamValue"`
ParamType string `json:"ParamType"`
}
type RewardParamValue ¶
type TableBase ¶
type TableHolder ¶ added in v0.0.5
type TableHolder struct {
Complex ComplexTable
Types TypesTable
}
func GetTables ¶ added in v0.0.5
func GetTables() *TableHolder
func LoadTablesFromFile ¶
func LoadTablesFromFile(basePath string) (*TableHolder, error)
func TablesFromContext ¶
func TablesFromContext(ctx context.Context) *TableHolder
func (*TableHolder) GetTable ¶ added in v0.0.5
func (t *TableHolder) GetTable(tableName string) TableBase
func (*TableHolder) GetTables ¶ added in v0.0.5
func (t *TableHolder) GetTables() []TableBase
type Types ¶
type Types struct {
Int int32 `json:"Int"`
Long int64 `json:"Long"`
Float float64 `json:"Float"`
String string `json:"String"`
Time time.Time `json:"Time"`
Json interface{} `json:"Json"`
IntArray []int32 `json:"IntArray"`
LongArray []int64 `json:"LongArray"`
FloatArray []float64 `json:"FloatArray"`
StringArray []string `json:"StringArray"`
TimeArray []time.Time `json:"TimeArray"`
}
type TypesTable ¶
func GetTypesTable ¶ added in v0.0.5
func GetTypesTable() *TypesTable
func (*TypesTable) GetRows ¶
func (t *TypesTable) GetRows() interface{}
func (*TypesTable) Load ¶
func (t *TypesTable) Load(data []byte) error
func (*TypesTable) LoadFromFile ¶
func (t *TypesTable) LoadFromFile(basePath string) error
func (*TypesTable) LoadFromString ¶
func (t *TypesTable) LoadFromString(jsonString string) error
func (*TypesTable) TableName ¶ added in v0.0.5
func (t *TypesTable) TableName() string
Click to show internal directories.
Click to hide internal directories.