gorillaserver

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 Config

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

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

type GorillaServer

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

GorillaServer сервер

func New

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

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

func (*GorillaServer) Router

func (s *GorillaServer) Router() *mux.Router

func (*GorillaServer) Run

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

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

func (*GorillaServer) Stop

func (s *GorillaServer) Stop()

Jump to

Keyboard shortcuts

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