apiserver

package
v0.0.0-...-a61ba57 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config *Config) error

Start is a function for start server

Types

type Config

type Config struct {
	BindAddr    string `toml:"bind_addr"`
	LogLevel    string `toml:"log_level"`
	DatabaseURL string `toml:"database_url"`
	JwtKey      []byte `toml:"jwt_key"`
}

Config is a interface for starting server

func NewConfig

func NewConfig() *Config

NewConfig is a function for creating a new Config interface for starting server

Jump to

Keyboard shortcuts

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