Documentation
¶
Index ¶
- Constants
- func Watchers() iter.Seq2[string, watcherDebug]
- type ForceCacheControl
- type StopCallback
- type Watcher
- func (w *Watcher) Accept() (conn gpnet.StreamConn, err error)
- func (w *Watcher) Addr() net.Addr
- func (w *Watcher) Close() error
- func (w *Watcher) Finish(reason any)
- func (w *Watcher) Handle(conn gpnet.StreamConn) error
- func (w *Watcher) Key() string
- 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
Constants ¶
View Source
const ContextKey = "idlewatcher.watcher"
Variables ¶
This section is empty.
Functions ¶
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 Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
TODO: fix stream type
func (*Watcher) Accept ¶
func (w *Watcher) Accept() (conn gpnet.StreamConn, err error)
Accept implements types.Stream.
func (*Watcher) Handle ¶
func (w *Watcher) Handle(conn gpnet.StreamConn) error
Handle implements types.Stream.
func (*Watcher) MarshalJSON ¶ added in v0.11.1
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.