api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

API represent the Daemon REST API

func NewAPI

func NewAPI(d daemon.Daemon, conf config.APIConfig) (*API, error)

NewAPI return a new API instance, wrapped around given Daemon instance and with given config

func (*API) Shutdown

func (a *API) Shutdown(ctx context.Context) error

Shutdown terminate the API server cleanly

func (*API) Start

func (a *API) Start(address string) error

Start the API server

Jump to

Keyboard shortcuts

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