Documentation
¶
Index ¶
- type ServiceAgent
- func (s *ServiceAgent) Describe() *meta.AgentInfo
- func (s *ServiceAgent) ID() string
- func (s *ServiceAgent) Reload() error
- func (s *ServiceAgent) Restart() error
- func (s *ServiceAgent) Scope() string
- func (s *ServiceAgent) Start() error
- func (s *ServiceAgent) Stop() error
- func (s *ServiceAgent) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceAgent ¶
ServiceAgent wraps a Python agent for service-type behavior.
func NewServiceAgent ¶
func NewServiceAgent(path string) (*ServiceAgent, error)
NewServiceAgent creates a new service agent from a Python file.
func (*ServiceAgent) Describe ¶
func (s *ServiceAgent) Describe() *meta.AgentInfo
func (*ServiceAgent) ID ¶
func (s *ServiceAgent) ID() string
func (*ServiceAgent) Reload ¶
func (s *ServiceAgent) Reload() error
func (*ServiceAgent) Restart ¶
func (s *ServiceAgent) Restart() error
func (*ServiceAgent) Scope ¶
func (s *ServiceAgent) Scope() string
func (*ServiceAgent) Start ¶
func (s *ServiceAgent) Start() error
func (*ServiceAgent) Stop ¶
func (s *ServiceAgent) Stop() error
func (*ServiceAgent) Type ¶
func (s *ServiceAgent) Type() string
Click to show internal directories.
Click to hide internal directories.