api

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*http.Server
	// contains filtered or unexported fields
}

ApiServer object

func New

func New() *API

New returns an instance of a configured API

func (*API) Start

func (a *API) Start(ctx context.Context)

Start is a blocking event that starts the server on the configured port

func (*API) Stop

func (a *API) Stop(ctx context.Context)

Stop sends a termination signal to the api server

Jump to

Keyboard shortcuts

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