Documentation ¶
Index ¶
- Variables
- func AddShellCommand(name string, fun ShellCommand)
- func Agent()
- func Agitator()
- func AgitatorScheduleConfig()
- func BundEvalExpression(code string)
- func BundGlobalEvalExpression(code string)
- func CheckNewRelic()
- func CloseEtcdAgent()
- func CloseNatsAgent()
- func Config()
- func EtcdGetItems() *map[string]string
- func EtcdSetItem(key string, value string)
- func Eval()
- func EvalDisplayResult(core *stdlib.BUNDEnv)
- func Fin()
- func GlobalDisplayResult(core *stdlib.BUNDEnv)
- func HJsonLoadConfig(uri string) *map[string]interface{}
- func IfSTOP(msg *NRBundPacket) bool
- func IfSYNC(msg *NRBundPacket) bool
- func Init()
- func InitEtcdAgent(otype string)
- func InitNatsAgent()
- func InitNewRelicAgent()
- func IsShellCommand(name string) bool
- func Loop()
- func Main()
- func MakeScript(orole string, script []byte, args []interface{}) ([]byte, error)
- func MakeStop(orole string) ([]byte, error)
- func MakeSync(orole string) ([]byte, error)
- func Marshal(orole string, pktclass string, pktkey string, args []interface{}, value []byte) ([]byte, error)
- func NRBundAgent(m *nats.Msg)
- func NRBundExecuteScript(m *nats.Msg)
- func NatsRecv(fun nats.MsgHandler)
- func NatsRecvSys(fun nats.MsgHandler)
- func NatsSend(data []byte)
- func NatsSendSys(data []byte)
- func Run()
- func RunFile(core *stdlib.BUNDEnv, name string)
- func RunShellCommand(name string, core *tc.TCstate)
- func SendStop()
- func SendSync()
- func SetApplicationId(atype string)
- func Shell()
- func ShellCommandLast(core *tc.TCstate) interface{}
- func ShellCommandStack(core *tc.TCstate) interface{}
- func ShellCommandVersion(core *tc.TCstate) interface{}
- func ShellDisplayResult(core *tc.TCstate, show bool)
- func Stop()
- func Submit()
- func Sync()
- func SysQueueHandler(m *nats.Msg)
- func Take()
- func UpdateConfigToEtcd()
- func UpdateLocalConfigFromEtcd()
- func Version()
- func Watch()
- func WatchDisplay(m *nats.Msg)
- type NATSSync
- type NRBundPacket
- type ShellCommand
- type TheScript
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 NRapp newrelic.Application
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 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 EtcdGetItems ¶
func EtcdSetItem ¶
func EvalDisplayResult ¶
func GlobalDisplayResult ¶
func HJsonLoadConfig ¶
func IfSTOP ¶
func IfSTOP(msg *NRBundPacket) bool
func IfSYNC ¶
func IfSYNC(msg *NRBundPacket) bool
func InitEtcdAgent ¶
func InitEtcdAgent(otype string)
func InitNatsAgent ¶
func InitNatsAgent()
func InitNewRelicAgent ¶
func InitNewRelicAgent()
func IsShellCommand ¶
func NRBundAgent ¶
func NRBundAgent(m *nats.Msg)
func NRBundExecuteScript ¶
func NRBundExecuteScript(m *nats.Msg)
func NatsRecvSys ¶
func NatsRecvSys(fun nats.MsgHandler)
func NatsSendSys ¶
func NatsSendSys(data []byte)
func RunShellCommand ¶
func SetApplicationId ¶
func SetApplicationId(atype string)
func ShellCommandLast ¶
func ShellCommandStack ¶
func ShellCommandVersion ¶
func ShellDisplayResult ¶
func SysQueueHandler ¶
func SysQueueHandler(m *nats.Msg)
func UpdateConfigToEtcd ¶
func UpdateConfigToEtcd()
func UpdateLocalConfigFromEtcd ¶
func UpdateLocalConfigFromEtcd()
func WatchDisplay ¶
func WatchDisplay(m *nats.Msg)
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.