Documentation
¶
Index ¶
- type ForceCacheControl
- type StopCallback
- type Waker
- type Watcher
- func (w *Watcher) Accept() (conn types.StreamConn, err error)
- func (w *Watcher) Addr() net.Addr
- func (w *Watcher) Close() error
- func (w *Watcher) Config() *idlewatcher.Config
- func (w *Watcher) ContainerID() string
- func (w *Watcher) ContainerName() string
- func (w *Watcher) Finish(reason any)
- func (w *Watcher) Handle(conn types.StreamConn) error
- func (w *Watcher) Latency() time.Duration
- func (w *Watcher) MarshalJSON() ([]byte, error)
- func (w *Watcher) Name() string
- func (w *Watcher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- func (w *Watcher) Setup() error
- func (w *Watcher) Start(parent task.Parent) gperr.Error
- func (w *Watcher) Status() health.Status
- func (w *Watcher) String() string
- func (w *Watcher) Task() *task.Task
- func (w *Watcher) Uptime() time.Duration
- func (w *Watcher) Wake() error
- func (w *Watcher) WakeDebug() *zerolog.Event
- func (w *Watcher) WakeError(err error)
- func (w *Watcher) WakeTrace() *zerolog.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForceCacheControl ¶
type ForceCacheControl struct { http.ResponseWriter // contains filtered or unexported fields }
func (*ForceCacheControl) Unwrap ¶
func (f *ForceCacheControl) Unwrap() http.ResponseWriter
func (*ForceCacheControl) WriteHeader ¶
func (f *ForceCacheControl) WriteHeader(code int)
type StopCallback ¶
type StopCallback func() error
type Waker ¶
func NewHTTPWaker ¶
func NewHTTPWaker(parent task.Parent, route route.Route, rp *reverseproxy.ReverseProxy) (Waker, gperr.Error)
lifetime should follow route provider.
type Watcher ¶
func (*Watcher) Accept ¶
func (w *Watcher) Accept() (conn types.StreamConn, err error)
Accept implements types.Stream.
func (*Watcher) Config ¶ added in v0.10.0
func (w *Watcher) Config() *idlewatcher.Config
func (*Watcher) ContainerID ¶ added in v0.10.0
func (*Watcher) ContainerName ¶ added in v0.10.0
func (*Watcher) Handle ¶
func (w *Watcher) Handle(conn types.StreamConn) error
Handle implements types.Stream.
func (*Watcher) MarshalJSON ¶
MarshalJSON implements health.HealthMonitor.
func (*Watcher) ServeHTTP ¶
func (w *Watcher) ServeHTTP(rw http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.