Documentation
      ¶
    
    
  
    
  
    Index ¶
- func WithTables(ctx context.Context, t *Tables) context.Context
 - type Complex
 - type ComplexA
 - type ComplexTable
 - func (t *ComplexTable) Find(id int) (*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) SheetName() string
 
- type Reward
 - type RewardParamValue
 - type SKU
 - type TableBase
 - type Tables
 - type Types
 - type TypesTable
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComplexTable ¶
type ComplexTable struct {
	Rows []Complex
}
    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) SheetName ¶
func (t *ComplexTable) SheetName() string
type Reward ¶
type Reward struct {
	Type       string           `json:"Type"`
	ParamValue RewardParamValue `json:"ParamValue"`
	ParamType  string           `json:"ParamType"`
}
    type RewardParamValue ¶
type Tables ¶
type Tables struct {
	Complex ComplexTable
	Types   TypesTable
}
    func LoadTablesFromFile ¶
func TablesFromContext ¶
func (*Tables) GetBySheetName ¶
type Types ¶
type Types struct {
	Int         int         `json:"Int"`
	Long        int64       `json:"Long"`
	Float       float64     `json:"Float"`
	String      string      `json:"String"`
	Time        time.Time   `json:"Time"`
	Json        interface{} `json:"Json"`
	IntArray    []int       `json:"IntArray"`
	LongArray   []int64     `json:"LongArray"`
	FloatArray  []float64   `json:"FloatArray"`
	StringArray []string    `json:"StringArray"`
	TimeArray   []time.Time `json:"TimeArray"`
}
    type 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) SheetName ¶
func (t *TypesTable) SheetName() string
 Click to show internal directories. 
   Click to hide internal directories.