api

package
v0.0.0-...-44808bf Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package api defines and implements master api server interface.

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
}

func (*Api) Configure

func (a *Api) Configure(c *ServerConfig) error

func (*Api) Mount

func (a *Api) Mount(prefix string, handler http.Handler)

func (*Api) Start

func (a *Api) Start() error

func (*Api) Stop

func (a *Api) Stop() error

type Server

type Server interface {
	Configure(*ServerConfig) error
	Start() error
	Stop() error
	Mount(path string, handler http.Handler)
}

func New

func New() Server

type ServerConfig

type ServerConfig struct {
	Enable bool
	Net    string
	Addr   string
	Port   uint
}

Directories

Path Synopsis
Package client defines api's client interfaces.
Package client defines api's client interfaces.
Package wapp implements the master api webapp.
Package wapp implements the master api webapp.

Jump to

Keyboard shortcuts

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