controllers

package
v0.0.0-...-6cb7d0e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerPort     string        `yaml:"server_port"`
	BasePath       string        `yaml:"base_path"`
	RequestTimeout time.Duration `yaml:"request_timeout"`
}

Config - структура конфига сервера

type Server

type Server struct {
	Server *http.Server
	// contains filtered or unexported fields
}

Server - структура сервера

func NewServer

func NewServer(config *Config) *Server

NewServer создаёт новый сервер

func (*Server) NewRouter

func (s *Server) NewRouter()

NewRouter создаёт новый роутер

Jump to

Keyboard shortcuts

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