api

package
v0.4.5-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 19 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 {
	APIRoot                       string
	AuthURL                       string
	RegionalHostFormat, OwnRegion string
}

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