Documentation ¶ Index ¶ type APIServer func New(config *Config) *APIServer func (s *APIServer) Start() error type Config func NewConfig() *Config 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 параметрами Source Files ¶ View all Source files api_server.go config.go Click to show internal directories. Click to hide internal directories.