Documentation ¶
Index ¶
- Constants
- func NewService(name string, ln listener.IListener, h handler.IHandler, opts ...Option) service.IService
- type Event
- type Option
- func AdmissionOption(admission admission.IAdmission) Option
- func LoggerOption(logger logger.ILogger) Option
- func ObservePeriodOption(period time.Duration) Option
- func ObserverOption(observer observer.IObserver) Option
- func PostDownOption(cmds []string) Option
- func PostUpOption(cmds []string) Option
- func PreDownOption(cmds []string) Option
- func PreUpOption(cmds []string) Option
- func RecordersOption(recorders ...recorder.RecorderObject) Option
- func StatsOption(stats *stats.Stats) Option
- type ServiceEvent
- type State
- type Status
Constants ¶
View Source
const (
MaxEventSize = 20
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(opts *options)
func AdmissionOption ¶
func AdmissionOption(admission admission.IAdmission) Option
func LoggerOption ¶
func ObservePeriodOption ¶ added in v0.0.10
func ObserverOption ¶ added in v0.0.5
func PostDownOption ¶
func PostUpOption ¶
func PreDownOption ¶
func PreUpOption ¶
func RecordersOption ¶
func RecordersOption(recorders ...recorder.RecorderObject) Option
func StatsOption ¶ added in v0.0.5
type ServiceEvent ¶ added in v0.0.5
func (ServiceEvent) Type ¶ added in v0.0.5
func (ServiceEvent) Type() observer.EventType
type Status ¶ added in v0.0.5
type Status struct {
// contains filtered or unexported fields
}
func (*Status) CreateTime ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.