table

package
v0.0.0-...-52d6a69 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Generated by github.com/davyxu/tabtoy Version: 2.8.7 DO NOT EDIT!!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoIdDefine

type ProtoIdDefine struct {

	//唯一id
	Id int32 `json:"id"`

	Name string `json:"name"`
}

Defined in table: ProtoId

type ProtoMsgIndex

type ProtoMsgIndex struct {

	//ProtoId
	ProtoId []*ProtoIdDefine
}

Defined in table: ProtoMsgIndex

type ProtoMsgIndexTable

type ProtoMsgIndexTable struct {

	// 表格原始数据
	ProtoMsgIndex

	ProtoIdById map[int32]*ProtoIdDefine

	ProtoIdByName map[string]*ProtoIdDefine
	// contains filtered or unexported fields
}

ProtoMsgIndex 访问接口

var InsProtoMsgIndexTable *ProtoMsgIndexTable

添加init初始实例 "Add By Tse"

func NewProtoMsgIndexTable

func NewProtoMsgIndexTable() *ProtoMsgIndexTable

创建一个ProtoMsgIndex表读取实例

func (*ProtoMsgIndexTable) Load

func (self *ProtoMsgIndexTable) Load(filename string) error

从json文件加载

func (*ProtoMsgIndexTable) RegisterIndexEntry

func (self *ProtoMsgIndexTable) RegisterIndexEntry(name string, indexCallback func(*ProtoMsgIndexTable) error, clearCallback func(*ProtoMsgIndexTable) error)

注册外部索引入口, 索引回调, 清空回调

func (*ProtoMsgIndexTable) RegisterPostEntry

func (self *ProtoMsgIndexTable) RegisterPostEntry(callback func(*ProtoMsgIndexTable) error)

注册所有完成时回调

func (*ProtoMsgIndexTable) RegisterPreEntry

func (self *ProtoMsgIndexTable) RegisterPreEntry(callback func(*ProtoMsgIndexTable) error)

注册加载前回调

func (*ProtoMsgIndexTable) Reload

func (self *ProtoMsgIndexTable) Reload() error

添加Reload方法 "Add By Tse"

Jump to

Keyboard shortcuts

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