Documentation ¶
Index ¶
- Constants
- Variables
- func Handler(l log.Logger, metrics Metrics) http.HandlerFunc
- func HealthzHandler(w http.ResponseWriter, r *http.Request)
- func Main(version string) func(ctx *cli.Context) error
- func Start(ctx context.Context, l log.Logger, cfg Config, version string) error
- type Config
- type Metrics
Constants ¶
View Source
const ( MetricsNamespace = "op_heartbeat" MinHeartbeatInterval = 10*time.Minute - 10*time.Second UsersCacheSize = 10_000 )
View Source
const ( HTTPMaxHeaderSize = 10 * 1024 HTTPMaxBodySize = 1024 * 1024 )
Variables ¶
Functions ¶
func HealthzHandler ¶
func HealthzHandler(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.