server

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

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 15 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
	Logger  *zap.Logger
	APIOnly bool
}

type Server

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

Server houses the http.Server and other variables for our HTTP server

func NewServer

func NewServer(cfg *Config, db *db.DB) *Server

NewServer creates a new instance of Server

func (*Server) Listen

func (s *Server) Listen()

func (*Server) WaitForShutdown

func (s *Server) WaitForShutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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