api

package
v0.0.0-...-4106b0c Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT 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 {
	// contains filtered or unexported fields
}

API is a structure that contains API for the bot

func New

func New(log *log.Logger, hostname string, hit *hits.Hits) *API

New return new API instance

func (*API) Shutdown

func (a *API) Shutdown() error

Shutdown performs graceful API shutdown

func (*API) Start

func (a *API) Start(port int) error

Start starts the API server

Jump to

Keyboard shortcuts

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