api

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, runner task.Runner, opts ServerOptions) error

func NewHandler

func NewHandler(serverCtx context.Context, opts APIHandlerOptions, runner task.Runner) http.Handler

Types

type APIHandlerOptions

type APIHandlerOptions struct {
	APIRoot, ServerName string
	Prometheus          bool
	Catalyst            *clients.CatalystOptions
}

type ServerOptions

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