Back to godoc.org

Package api

v0.3.0
Latest Go to latest

The latest major version is .

Published: Sep 7, 2020 | License: GPL3 | Module: github.com/creekorful/open-dydns

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier