Documentation ¶
Index ¶
- func NewEntryList() *entryList
- func WithAddCallback(callback func(*Container)) func(*ActionRunner)
- func WithBufferSize(size int) serverOptFunc
- func WithGetCallback(callback func(string, string) (*Container, *Endpoint)) func(*ActionRunner)
- func WithPingDuration(d time.Duration) serverOptFunc
- func WithPingerCallback(callback func()) func(*ActionRunner)
- func WithRemoveCallback(callback func(*Container)) func(*ActionRunner)
- func WithRules(rules ...rule.RegisterFunc) serverOptFunc
- func WithUpdateCallback(callback func(*Container, *Endpoint)) func(*ActionRunner)
- type ActionCallback
- type ActionRunner
- func (ar *ActionRunner) Add(container *Container)
- func (ar *ActionRunner) Close()
- func (ar *ActionRunner) Get(ctx context.Context, endpoint *Endpoint) (*Container, *Endpoint)
- func (ar *ActionRunner) Pinger()
- func (ar *ActionRunner) Remove(container *Container)
- func (ar *ActionRunner) Update(container *Container, endpoint *Endpoint)
- type Config
- type Container
- type Driver
- type Endpoint
- type Event
- type EventType
- type Rule
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEntryList ¶ added in v0.0.4
func NewEntryList() *entryList
func WithAddCallback ¶
func WithAddCallback(callback func(*Container)) func(*ActionRunner)
func WithBufferSize ¶
func WithBufferSize(size int) serverOptFunc
func WithGetCallback ¶
func WithGetCallback(callback func(string, string) (*Container, *Endpoint)) func(*ActionRunner)
func WithPingDuration ¶
func WithPingerCallback ¶
func WithPingerCallback(callback func()) func(*ActionRunner)
func WithRemoveCallback ¶
func WithRemoveCallback(callback func(*Container)) func(*ActionRunner)
func WithRules ¶
func WithRules(rules ...rule.RegisterFunc) serverOptFunc
func WithUpdateCallback ¶
func WithUpdateCallback(callback func(*Container, *Endpoint)) func(*ActionRunner)
Types ¶
type ActionCallback ¶
type ActionCallback func(*ActionRunner)
type ActionRunner ¶
type ActionRunner struct {
// contains filtered or unexported fields
}
func NewActionRunner ¶
func NewActionRunner(bufferSize int, cbs ...ActionCallback) *ActionRunner
func (*ActionRunner) Add ¶
func (ar *ActionRunner) Add(container *Container)
func (*ActionRunner) Close ¶
func (ar *ActionRunner) Close()
func (*ActionRunner) Pinger ¶
func (ar *ActionRunner) Pinger()
func (*ActionRunner) Remove ¶
func (ar *ActionRunner) Remove(container *Container)
func (*ActionRunner) Update ¶
func (ar *ActionRunner) Update(container *Container, endpoint *Endpoint)
type Rule ¶
type Rule struct { Type string `json:"type"` Args json.RawMessage `json:"args"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterDriver ¶
Click to show internal directories.
Click to hide internal directories.