api

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 27 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, views *views.Client, usage *usage.Client) error

func NewHandler

func NewHandler(serverCtx context.Context, opts APIHandlerOptions, healthcore *health.Core, views *views.Client, usage *usage.Client) 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