module

package
Version: v0.0.0-...-105474d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const INTERVAL = 2 * time.Second

Variables

View Source
var Crontab *cron.Cron

Functions

func AddCrontabFunc

func AddCrontabFunc(name, env, schedule, args string)

func DeleteCrontabFunc

func DeleteCrontabFunc(name string)

func InitCrontab

func InitCrontab()

func InitRPCPool

func InitRPCPool()

func RPCAsyncCall

func RPCAsyncCall(ip string, function string, args string) (interface{}, error)

func RPCCall

func RPCCall(ip string, function string, args string) (interface{}, error)

func RPCConnAddrs

func RPCConnAddrs() map[string]string

func RPCConnPool

func RPCConnPool()

func RPCConnect

func RPCConnect(host, addr string)

Types

type RPCPool

type RPCPool struct {
	Pool map[string]*rpc.Client
	Lock sync.RWMutex
}

Source Files

Jump to

Keyboard shortcuts

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