Documentation
¶
Index ¶
- func WithAddCallback(callback func(*Container)) func(*ActionRunner)
- func WithBufferSize(size int) serverOptFunc
- func WithGetCallback(callback func(string, string) *Container) func(*ActionRunner)
- func WithPingDuration(d time.Duration) serverOptFunc
- func WithPingerCallback(callback func()) func(*ActionRunner)
- func WithRemoveCallback(callback func(*Container)) func(*ActionRunner)
- func WithUpdateCallback(callback func(*Container, string, string)) func(*ActionRunner)
- type ActionCallback
- type ActionRunner
- func (ar *ActionRunner) Add(container *Container)
- func (ar *ActionRunner) Close()
- func (ar *ActionRunner) Get(ctx context.Context, domain, path string) *Container
- func (ar *ActionRunner) Pinger()
- func (ar *ActionRunner) Remove(container *Container)
- func (ar *ActionRunner) Update(container *Container, domain string, path string)
- type Config
- type Container
- type Driver
- type Endpoint
- type Event
- type EventType
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) func(*ActionRunner)
func WithPingDuration ¶
func WithPingerCallback ¶
func WithPingerCallback(callback func()) func(*ActionRunner)
func WithRemoveCallback ¶
func WithRemoveCallback(callback func(*Container)) func(*ActionRunner)
func WithUpdateCallback ¶
func WithUpdateCallback(callback func(*Container, string, string)) 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) Get ¶
func (ar *ActionRunner) Get(ctx context.Context, domain, path string) *Container
func (*ActionRunner) Pinger ¶
func (ar *ActionRunner) Pinger()
func (*ActionRunner) Remove ¶
func (ar *ActionRunner) Remove(container *Container)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterDriver ¶
Click to show internal directories.
Click to hide internal directories.