Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTables ¶
Types ¶
type NodeServer ¶
type NodeServer struct { *etcdclient.ServerReg *models.Node *cron.Cron // contains filtered or unexported fields }
func NewNodeServer ¶
func NewNodeServer() (*NodeServer, error)
func (*NodeServer) Down ¶
func (srv *NodeServer) Down()
Remove the survival information from mysql after the node instance is deactivated
func (*NodeServer) Register ¶
func (srv *NodeServer) Register() error
Register into ETCD with /crony/node/<node_id>
func (*NodeServer) Run ¶
func (srv *NodeServer) Run() (err error)
func (*NodeServer) Stop ¶
func (srv *NodeServer) Stop(i interface{})
Click to show internal directories.
Click to hide internal directories.