service

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTables

func RegisterTables(db *gorm.DB)

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{})

Jump to

Keyboard shortcuts

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