api_server

package
v0.0.0-...-e326f7f Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

APIServer

func New

func New(config *Config) *APIServer

New

func (*APIServer) Start

func (s *APIServer) Start() error

Start

type Config

type Config struct {
	// Адрес по которому мы запускаем веб сервер
	BindAddr string `toml:"bind_addr"`
	LogLevel string `toml:"log_level"`
	Store    *store.Config
}

Config

func NewConfig

func NewConfig() *Config

Передает инициализированный config, default параметрами

Jump to

Keyboard shortcuts

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