chiserver

package
v0.0.0-...-7c6bc89 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChiServer

type ChiServer struct {
	*application.AbstractComponent
	// contains filtered or unexported fields
}

ChiServer сервер

func New

func New(config *Config, routers ...httpserver.Router) *ChiServer

New конструктор

func (*ChiServer) Router

func (s *ChiServer) Router() *chi.Mux

func (*ChiServer) Run

func (s *ChiServer) Run(main *application.MainParams) error

Run запуск сервиса в работу

type Config

type Config struct {
	Port int `arg:"env:HTTP_SRV_PORT"` // порт http сервера
}

config параметры конфигурации

Jump to

Keyboard shortcuts

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