api

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, opts ServerOptions, healthcore *health.Core) error

func NewHandler

func NewHandler(serverCtx context.Context, opts APIHandlerOptions, healthcore *health.Core) http.Handler

Types

type APIHandlerOptions added in v0.4.0

type APIHandlerOptions struct {
	ServerName, APIRoot, AuthURL  string
	RegionalHostFormat, OwnRegion string
	Prometheus                    bool
}

type ServerOptions added in v0.1.0

type ServerOptions struct {
	Host                string
	Port                uint
	ShutdownGracePeriod time.Duration
	APIHandlerOptions
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL