api

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: AGPL-3.0 Imports: 8 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 {
	Wrapper *wrapper.Wrapper
	// contains filtered or unexported fields
}

API represents the api server

func NewAPI

func NewAPI(w *wrapper.Wrapper) *API

NewAPI creates a new api instance

func (*API) Start

func (a *API) Start(ctx context.Context, wg *sync.WaitGroup)

Start the Api

func (*API) Stop

func (a *API) Stop(wg *sync.WaitGroup)

Stop the api

Jump to

Keyboard shortcuts

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