Documentation
¶
Index ¶
- Constants
- func ConfigDir() (string, error)
- func MakeAgentChannelRequest(addr string, signal byte, params []byte, f func(ch channel.Channel) error) error
- func NewAgentChannel(conn net.Conn) (channel.Channel, error)
- func NewAgentCmd(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlInit(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlRaftJoin(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlRaftList(p common.OptionsProvider) *cobra.Command
- func NewClearChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command
- func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command
- func NewGcCmd(p common.OptionsProvider) *cobra.Command
- func NewGetCmd(p common.OptionsProvider) *cobra.Command
- func NewGoVersionCmd(p common.OptionsProvider) *cobra.Command
- func NewMemstatsCmd(p common.OptionsProvider) *cobra.Command
- func NewPprofCpuCmd(p common.OptionsProvider) *cobra.Command
- func NewPprofHeapCmd(p common.OptionsProvider) *cobra.Command
- func NewPsCmd(p common.OptionsProvider) *cobra.Command
- func NewRouteCmd(p common.OptionsProvider) *cobra.Command
- func NewSetChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command
- func NewSetGcCmd(p common.OptionsProvider) *cobra.Command
- func NewSetLogLevelCmd(p common.OptionsProvider) *cobra.Command
- func NewSimpleAgentCustomCmd(name string, appId AgentAppId, op byte, p common.OptionsProvider) *cobra.Command
- func NewSimpleChAgentCustomCmd(name string, appId AgentAppId, op int32, p common.OptionsProvider) *cobra.Command
- func NewStackCmd(p common.OptionsProvider) *cobra.Command
- func NewStatsCmd(p common.OptionsProvider) *cobra.Command
- func NewTraceCmd(p common.OptionsProvider) *cobra.Command
- func PIDFile(pid int) (string, error)
- type AgentAppId
- type AgentClearChannelLogLevelAction
- type AgentCtrlInitOptions
- type AgentCtrlRaftJoinOptions
- type AgentCtrlRaftListOptions
- type AgentGcAction
- type AgentGetOptionsAction
- type AgentGoVersionAction
- type AgentMemstatsAction
- type AgentOptions
- type AgentPprofCpuAction
- type AgentPprofHeapAction
- type AgentPsAction
- type AgentRouteAction
- type AgentSetChannelLogLevelAction
- type AgentSetGcAction
- type AgentSetLogLevelAction
- type AgentStackAction
- type AgentStatsAction
- type AgentTraceAction
- type ForgetLinkAgentAction
- type P
- type SimpleAgentAction
- type SimpleChAgentCmdOptions
Constants ¶
View Source
const ( AgentAppController = AgentAppId(controller.AgentAppId) AgentAppRouter = AgentAppId(router.AgentAppId) )
Variables ¶
This section is empty.
Functions ¶
func MakeAgentChannelRequest ¶
func NewAgentChannel ¶
func NewAgentCmd ¶
func NewAgentCmd(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlInit ¶
func NewAgentCtrlInit(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlRaftJoin ¶
func NewAgentCtrlRaftJoin(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlRaftList ¶
func NewAgentCtrlRaftList(p common.OptionsProvider) *cobra.Command
func NewClearChannelLogLevelCmd ¶
func NewClearChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command
func NewForgetLinkAgentCmd ¶
func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command
func NewGoVersionCmd ¶
func NewGoVersionCmd(p common.OptionsProvider) *cobra.Command
func NewMemstatsCmd ¶
func NewMemstatsCmd(p common.OptionsProvider) *cobra.Command
func NewPprofCpuCmd ¶
func NewPprofCpuCmd(p common.OptionsProvider) *cobra.Command
func NewPprofHeapCmd ¶
func NewPprofHeapCmd(p common.OptionsProvider) *cobra.Command
func NewPsCmd ¶
func NewPsCmd(p common.OptionsProvider) *cobra.Command
NewPsCmd Pss a command object for the "Ps" command
func NewRouteCmd ¶
func NewRouteCmd(p common.OptionsProvider) *cobra.Command
func NewSetChannelLogLevelCmd ¶
func NewSetChannelLogLevelCmd(p common.OptionsProvider) *cobra.Command
func NewSetGcCmd ¶
func NewSetGcCmd(p common.OptionsProvider) *cobra.Command
func NewSetLogLevelCmd ¶
func NewSetLogLevelCmd(p common.OptionsProvider) *cobra.Command
func NewSimpleAgentCustomCmd ¶
func NewSimpleAgentCustomCmd(name string, appId AgentAppId, op byte, p common.OptionsProvider) *cobra.Command
func NewSimpleChAgentCustomCmd ¶
func NewSimpleChAgentCustomCmd(name string, appId AgentAppId, op int32, p common.OptionsProvider) *cobra.Command
func NewStackCmd ¶
func NewStackCmd(p common.OptionsProvider) *cobra.Command
func NewStatsCmd ¶
func NewStatsCmd(p common.OptionsProvider) *cobra.Command
func NewTraceCmd ¶
func NewTraceCmd(p common.OptionsProvider) *cobra.Command
Types ¶
type AgentAppId ¶
type AgentAppId byte
type AgentClearChannelLogLevelAction ¶
type AgentClearChannelLogLevelAction struct {
AgentOptions
}
func (*AgentClearChannelLogLevelAction) Run ¶
func (self *AgentClearChannelLogLevelAction) Run() error
Run implements the command
type AgentCtrlInitOptions ¶
type AgentCtrlInitOptions struct {
AgentOptions
}
func (*AgentCtrlInitOptions) Run ¶
func (o *AgentCtrlInitOptions) Run() error
Run implements the command
type AgentCtrlRaftJoinOptions ¶
type AgentCtrlRaftJoinOptions struct { AgentOptions Voter bool MemberId string }
func (*AgentCtrlRaftJoinOptions) Run ¶
func (o *AgentCtrlRaftJoinOptions) Run() error
Run implements the command
type AgentCtrlRaftListOptions ¶
type AgentCtrlRaftListOptions struct {
AgentOptions
}
func (*AgentCtrlRaftListOptions) Run ¶
func (o *AgentCtrlRaftListOptions) Run() error
Run implements the command
type AgentGcAction ¶
type AgentGcAction struct {
AgentOptions
}
type AgentGetOptionsAction ¶
type AgentGetOptionsAction struct { AgentOptions Pid string }
func (*AgentGetOptionsAction) Run ¶
func (self *AgentGetOptionsAction) Run() error
Run implements the command
type AgentGoVersionAction ¶
type AgentGoVersionAction struct { AgentOptions CtrlListener string }
func (*AgentGoVersionAction) Run ¶
func (self *AgentGoVersionAction) Run() error
Run implements the command
type AgentMemstatsAction ¶
type AgentMemstatsAction struct { AgentOptions CtrlListener string }
func (*AgentMemstatsAction) Run ¶
func (o *AgentMemstatsAction) Run() error
Run implements the command
type AgentOptions ¶
type AgentOptions struct {
common.CommonOptions
}
AgentOptions contains the command line options
type AgentPprofCpuAction ¶
type AgentPprofCpuAction struct {
AgentOptions
}
func (*AgentPprofCpuAction) Run ¶
func (self *AgentPprofCpuAction) Run() error
Run implements the command
type AgentPprofHeapAction ¶
type AgentPprofHeapAction struct {
AgentOptions
}
func (*AgentPprofHeapAction) Run ¶
func (self *AgentPprofHeapAction) Run() error
Run implements the command
type AgentPsAction ¶
type AgentPsAction struct {
AgentOptions
}
type AgentRouteAction ¶
type AgentRouteAction struct { AgentOptions CtrlListener string }
type AgentSetChannelLogLevelAction ¶
type AgentSetChannelLogLevelAction struct {
AgentOptions
}
func (*AgentSetChannelLogLevelAction) Run ¶
func (self *AgentSetChannelLogLevelAction) Run() error
Run implements the command
type AgentSetGcAction ¶
type AgentSetGcAction struct {
AgentOptions
}
type AgentSetLogLevelAction ¶
type AgentSetLogLevelAction struct {
AgentOptions
}
func (*AgentSetLogLevelAction) Run ¶
func (self *AgentSetLogLevelAction) Run() error
Run implements the command
type AgentStackAction ¶
type AgentStackAction struct { AgentOptions StackTimeout time.Duration }
type AgentStatsAction ¶
type AgentStatsAction struct {
AgentOptions
}
type AgentTraceAction ¶
type AgentTraceAction struct {
AgentOptions
}
type ForgetLinkAgentAction ¶
type ForgetLinkAgentAction struct {
AgentOptions
}
func (*ForgetLinkAgentAction) Run ¶
func (self *ForgetLinkAgentAction) Run() error
Run implements the command
type SimpleAgentAction ¶
type SimpleAgentAction struct {
AgentOptions
}
func (*SimpleAgentAction) Run ¶
func (self *SimpleAgentAction) Run(appId AgentAppId, op byte) error
Run implements the command
type SimpleChAgentCmdOptions ¶
type SimpleChAgentCmdOptions struct { AgentOptions // contains filtered or unexported fields }
func (*SimpleChAgentCmdOptions) Run ¶
func (o *SimpleChAgentCmdOptions) Run(appId AgentAppId) error
Run implements the command
Source Files
¶
- agent.go
- agent_ch_simple.go
- agent_clear_channel_log_level.go
- agent_controller_init.go
- agent_controller_raft_join.go
- agent_controller_raft_list.go
- agent_gc.go
- agent_get.go
- agent_go_version_action.go
- agent_memstats.go
- agent_pprof_cpu.go
- agent_pprof_heap.go
- agent_ps.go
- agent_router_add_route.go
- agent_router_forget_link.go
- agent_set_channel_log_level.go
- agent_set_log_level.go
- agent_setgc.go
- agent_simple.go
- agent_stack.go
- agent_stats.go
- agent_trace.go
Click to show internal directories.
Click to hide internal directories.