Documentation ¶
Index ¶
- func DBERROR(msg string, err error)
- func Init()
- func ParseConsole(cmd actor.IActor, command string)
- func StartConsole(cmd actor.IActor)
- type BaseDataRes
- type ClusterInfo
- type Db
- type Etcd
- type FileInfo
- type FileMonitor
- type FileRead
- type Http
- type IBaseDataRes
- type IClusterInfo
- type IFileMonitor
- type ISimpleTimer
- type IStateMachine
- type Nats
- type Raft
- type Redis
- type Server
- type SimpleTimer
- type SnowFlake
- type State
- type StateMachine
- type Stub
- type StubMailBox
- type StubRoute
- type TimerHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConsole ¶
func StartConsole ¶
Types ¶
type BaseDataRes ¶
type BaseDataRes struct {
DataMap map[interface{}]interface{}
}
func (*BaseDataRes) AddData ¶
func (b *BaseDataRes) AddData(id int, pData interface{})
func (*BaseDataRes) Clear ¶
func (b *BaseDataRes) Clear()
func (*BaseDataRes) Close ¶
func (b *BaseDataRes) Close()
func (*BaseDataRes) GetBaseData ¶
func (b *BaseDataRes) GetBaseData(id int) interface{}
func (*BaseDataRes) Init ¶
func (b *BaseDataRes) Init()
func (*BaseDataRes) Read ¶
func (b *BaseDataRes) Read() bool
type ClusterInfo ¶
type ClusterInfo rpc.ClusterInfo
集群信息
func (*ClusterInfo) Id ¶
func (c *ClusterInfo) Id() uint32
func (*ClusterInfo) IpString ¶
func (c *ClusterInfo) IpString() string
func (*ClusterInfo) ServiceType ¶
func (c *ClusterInfo) ServiceType() rpc.SERVICE
func (*ClusterInfo) String ¶
func (c *ClusterInfo) String() string
type FileMonitor ¶
func (*FileMonitor) AddFile ¶
func (f *FileMonitor) AddFile(fileName string, pFunc FileRead)
func (*FileMonitor) Addfile ¶
func (f *FileMonitor) Addfile(ctx context.Context, fileName string, p *int64)
func (*FileMonitor) Init ¶
func (f *FileMonitor) Init()
type IBaseDataRes ¶
type IClusterInfo ¶
type IFileMonitor ¶
type ISimpleTimer ¶
type IStateMachine ¶
type IStateMachine interface { Init(int) SetStateHandle(state int, pState *State) SetState(int) GetState() int GetPreState() int Update() }
状态机
type SimpleTimer ¶
type SimpleTimer struct {
// contains filtered or unexported fields
}
func NewSimpleTimer ¶
func NewSimpleTimer(interval int) *SimpleTimer
func (*SimpleTimer) CheckTimer ¶
func (s *SimpleTimer) CheckTimer() bool
func (*SimpleTimer) GetTimerCount ¶
func (s *SimpleTimer) GetTimerCount() int
func (*SimpleTimer) IsActived ¶
func (s *SimpleTimer) IsActived() bool
func (*SimpleTimer) SetInterval ¶
func (s *SimpleTimer) SetInterval(interval int)
func (*SimpleTimer) Start ¶
func (s *SimpleTimer) Start()
func (*SimpleTimer) Stop ¶
func (s *SimpleTimer) Stop()
type StateMachine ¶
type StateMachine struct {
// contains filtered or unexported fields
}
状态机
func (*StateMachine) GetState ¶
func (this *StateMachine) GetState() int
func (*StateMachine) Init ¶
func (this *StateMachine) Init(_maxState int)
func (*StateMachine) SetState ¶
func (this *StateMachine) SetState(state int)
func (*StateMachine) SetStateHandle ¶
func (this *StateMachine) SetStateHandle(state int, st *State)
func (*StateMachine) Update ¶
func (this *StateMachine) Update()
type StubMailBox ¶
type StubMailBox struct {
rpc.StubMailBox
}
func (*StubMailBox) Key ¶
func (s *StubMailBox) Key() string
func (*StubMailBox) StubName ¶
func (s *StubMailBox) StubName() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.