Documentation ¶
Index ¶
- Constants
- func NewService(name string, ln listener.Listener, h handler.Handler, opts ...Option) service.Service
- type Event
- type Option
- func AdmissionOption(admission admission.Admission) Option
- func LoggerOption(logger logger.Logger) Option
- func ObservePeriodOption(period time.Duration) Option
- func ObserverOption(observer observer.Observer) 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 LoggerOption ¶
func ObservePeriodOption ¶
func ObserverOption ¶
func PostDownOption ¶
func PostUpOption ¶
func PreDownOption ¶
func PreUpOption ¶
func RecordersOption ¶
func RecordersOption(recorders ...recorder.RecorderObject) Option
func StatsOption ¶
type ServiceEvent ¶
func (ServiceEvent) Type ¶
func (ServiceEvent) Type() observer.EventType
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) CreateTime ¶
Click to show internal directories.
Click to hide internal directories.