Documentation ¶
Index ¶
- func AttachClient(client kclient.Client) router.Middleware
- func ManageSilence(req router.Request, resp router.Response) error
- func RemoveSilence(req router.Request, resp router.Response) error
- func SetDefaults(h router.Handler) router.Handler
- func SetExpired(h router.Handler) router.Handler
- func SkipExpired(gcexpired bool, gcdelay time.Duration) router.Middleware
- func SkipInvalidSpec(h router.Handler) router.Handler
- type ContextKey
- type CreateResponse
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachClient ¶ added in v0.3.0
func AttachClient(client kclient.Client) router.Middleware
func RemoveSilence ¶ added in v0.4.0
func SkipExpired ¶
func SkipExpired(gcexpired bool, gcdelay time.Duration) router.Middleware
Types ¶
type ContextKey ¶ added in v0.3.0
type ContextKey string
type CreateResponse ¶ added in v0.5.3
type CreateResponse struct {
SilenceID string `json:"silenceID"`
}
type Response ¶ added in v0.5.3
type Response struct { v1.SilenceSpec `json:",inline"` ID string `json:"id"` Status v1.SilenceStatus `json:"status"` }
Click to show internal directories.
Click to hide internal directories.