server

package
v0.0.0-...-4d64e5c Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 8 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 {
	BindAddress  string `json:"bind_address,default:localhost:8080"`
	ReadTimeout  int    `json:"read_timeout,default:10"`
	WriteTimeout int    `json:"write_timeout,default:10"`
}

type Server

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

func NewServer

func NewServer(config *Config, db *database.DataBase, redis *hiredis.Redis) *Server

func (*Server) ListenAndServer

func (s *Server) ListenAndServer() error

func (*Server) Shutdown

func (s *Server) Shutdown() error

Jump to

Keyboard shortcuts

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