apiserver

package
v0.0.0-...-a9181b3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(config *Config) error

Start ...

Types

type Config

type Config struct {
	BindAddr      string
	LogLevel      string `toml:"log_level"`
	DatabaseURL   string `toml:"database_url"`
	SessionKey    string `toml:"session_key"`
	TokenPassword string `toml:"token_password"`
	AdminToken    string `toml:"admin_token"`
}

Config - структура описывающая конфиг сервера

func NewConfig

func NewConfig() *Config

NewConfig - создаем новый конфиг

Jump to

Keyboard shortcuts

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