bund

package
v0.0.0-...-886cbf0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationId string
View Source
var ApplicattionType string
View Source
var DoContinue bool
View Source
var Etcd *clientv3.Client
View Source
var HadSync bool
View Source
var Nats *nats.Conn
View Source
var (
	PROMPT = "[ NRBUND ] "
)
View Source
var QueueName string
View Source
var SysQueueName string

Functions

func AddShellCommand

func AddShellCommand(name string, fun ShellCommand)

func Agent

func Agent()

func Agitator

func Agitator()

func AgitatorScheduleConfig

func AgitatorScheduleConfig()

func BundEvalExpression

func BundEvalExpression(code string)

func BundGlobalEvalExpression

func BundGlobalEvalExpression(code string)

func CheckNewRelic

func CheckNewRelic()

func CloseEtcdAgent

func CloseEtcdAgent()

func CloseNatsAgent

func CloseNatsAgent()

func Config

func Config()

func EtcdGetItems

func EtcdGetItems() *map[string]string

func EtcdSetItem

func EtcdSetItem(key string, value string)

func Eval

func Eval()

func EvalDisplayResult

func EvalDisplayResult(core *stdlib.BUNDEnv)

func Fin

func Fin()

func GlobalDisplayResult

func GlobalDisplayResult(core *stdlib.BUNDEnv)

func HJsonLoadConfig

func HJsonLoadConfig(uri string) *map[string]interface{}

func IfSTOP

func IfSTOP(msg *NRBundPacket) bool

func IfSYNC

func IfSYNC(msg *NRBundPacket) bool

func Init

func Init()

func InitEtcdAgent

func InitEtcdAgent(otype string)

func InitNatsAgent

func InitNatsAgent()

func InitNewRelicAgent

func InitNewRelicAgent()

func IsShellCommand

func IsShellCommand(name string) bool

func Loop

func Loop()

func Main

func Main()

func MakeScript

func MakeScript(orole string, script []byte, args []interface{}) ([]byte, error)

func MakeStop

func MakeStop(orole string) ([]byte, error)

func MakeSync

func MakeSync(orole string) ([]byte, error)

func Marshal

func Marshal(orole string, pktclass string, pktkey string, args []interface{}, value []byte) ([]byte, error)

func NRBundAgent

func NRBundAgent(m *nats.Msg)

func NRBundExecuteScript

func NRBundExecuteScript(m *nats.Msg)

func NatsRecv

func NatsRecv(fun nats.MsgHandler)

func NatsRecvSys

func NatsRecvSys(fun nats.MsgHandler)

func NatsSend

func NatsSend(data []byte)

func NatsSendSys

func NatsSendSys(data []byte)

func Run

func Run()

func RunFile

func RunFile(core *stdlib.BUNDEnv, name string)

func RunShellCommand

func RunShellCommand(name string, core *tc.TCstate)

func SendStop

func SendStop()

func SendSync

func SendSync()

func SetApplicationId

func SetApplicationId(atype string)

func Shell

func Shell()

func ShellCommandLast

func ShellCommandLast(core *tc.TCstate) interface{}

func ShellCommandStack

func ShellCommandStack(core *tc.TCstate) interface{}

func ShellCommandVersion

func ShellCommandVersion(core *tc.TCstate) interface{}

func ShellDisplayResult

func ShellDisplayResult(core *tc.TCstate, show bool)

func Stop

func Stop()

func Submit

func Submit()

func Sync

func Sync()

func SysQueueHandler

func SysQueueHandler(m *nats.Msg)

func Take

func Take()

func UpdateConfigToEtcd

func UpdateConfigToEtcd()

func UpdateLocalConfigFromEtcd

func UpdateLocalConfigFromEtcd()

func Version

func Version()

func Watch

func Watch()

func WatchDisplay

func WatchDisplay(m *nats.Msg)

Types

type NATSSync

type NATSSync struct {
}

func (NATSSync) Run

func (s NATSSync) Run()

type NRBundPacket

type NRBundPacket struct {
	Id       string
	PktId    string
	OrigName string
	OrgRole  string
	PktClass string
	PktKey   string
	Args     []interface{}
	Value    []byte
}

func UnMarshal

func UnMarshal(data []byte) *NRBundPacket

type ShellCommand

type ShellCommand func(*tc.TCstate) interface{}

type TheScript

type TheScript struct {
	Name string
	Uri  string
}

func (TheScript) Run

func (s TheScript) Run()

Jump to

Keyboard shortcuts

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