api

package
v0.0.0-...-030c94e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 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 struct with core methods

func New

func New(config *Config) *API

New returns new api server

func (*API) Start

func (api *API) Start() error

Start api server

func (*API) Stop

func (api *API) Stop()

Stop ...

type Config

type Config struct {
	Port     string `toml:"port"`
	LogLevel string `toml:"log_level"`
	Store    *store.Config
}

Config for API

func NewConfig

func NewConfig() *Config

NewConfig returns new Config struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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