server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 7 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 {
	Host            string
	Port            int
	KeepAlive       int
	ReadTimeout     int
	WriteTimeout    int
	ShutdownTimeout int
}

Config ... Server configuration options

type Server

type Server struct {
	Cfg *Config
	// contains filtered or unexported fields
}

Server ... Server representation struct

func New

func New(ctx context.Context, cfg *Config, apiHandlers handlers.Handlers) (*Server, func(), error)

New ... Initializer

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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