Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCollectorActions ¶
func HandleCollectorActions(actions []graylog.ResponseCollectorAction)
func RegisterBackendRunner ¶
func RegisterBackendRunner(name string, c RunnerCreator) error
Types ¶
type DaemonConfig ¶
type DaemonConfig struct { Name string DisplayName string Description string Dir string Env []string Runner map[string]Runner }
var (
Daemon *DaemonConfig
)
func NewConfig ¶
func NewConfig() *DaemonConfig
func (*DaemonConfig) AddBackend ¶
func (dc *DaemonConfig) AddBackend(backend backends.Backend, context *context.Ctx)
func (*DaemonConfig) NewDistributor ¶
func (dc *DaemonConfig) NewDistributor() *Distributor
type Distributor ¶
type Distributor struct { Running bool // contains filtered or unexported fields }
func (*Distributor) BindToService ¶
func (dist *Distributor) BindToService(s service.Service)
type ExecRunner ¶
type ExecRunner struct { RunnerCommon // contains filtered or unexported fields }
func (*ExecRunner) Name ¶
func (r *ExecRunner) Name() string
func (*ExecRunner) Restart ¶
func (r *ExecRunner) Restart() error
func (*ExecRunner) Running ¶
func (r *ExecRunner) Running() bool
func (*ExecRunner) SetDaemon ¶
func (r *ExecRunner) SetDaemon(d *DaemonConfig)
func (*ExecRunner) Shutdown ¶
func (r *ExecRunner) Shutdown() error
func (*ExecRunner) Supervised ¶
func (r *ExecRunner) Supervised() bool
func (*ExecRunner) ValidateBeforeStart ¶
func (r *ExecRunner) ValidateBeforeStart() error
type Runner ¶
type RunnerCommon ¶
type RunnerCommon struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.