web

package
v0.0.6-dev Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server - web api part of application

func New

func New() *Server

New - web api intialization

bind - string with network binding address
logger - application logger

func (*Server) Start

func (s *Server) Start(wg *sync.WaitGroup) error

Start - func to start web-api

wg - application WaitGroup

func (*Server) Stop

func (s *Server) Stop() error

Stop - gracefull shutdown of web api with shutdown timeout in 10 seconds

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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