server

package
v0.0.0-...-f77d796 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 20 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 {
	BasicAuthUsername string
	BasicAuthPassword string
	ConnectionString  string

	DevMode  bool
	LogLevel int
	Port     string
	// contains filtered or unexported fields
}

Server holds config information for running the API server.

func New

func New(
	port string, devMode bool, username, password, redisHost, redisPassword string, logLevel int,
	connectionString string,
) *Server

New returns a new *Server configured with the parameters passed in.

func (*Server) Routes

func (s *Server) Routes()

Routes registers route handlers with the http server.

func (*Server) Run

func (s *Server) Run()

Run starts up the http server.

Jump to

Keyboard shortcuts

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