goserver

package
v0.0.0-...-058eff9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoHttpServer

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

GoHttpServer is a struct type to store information related to all handlers of web server

func NewGoHttpServer

func NewGoHttpServer(listenAddress string, l *log.Logger, store users.Storage, webRootDir string, content embed.FS) *GoHttpServer

NewGoHttpServer is a constructor that initializes the server,routes and all fields in GoHttpServer type

func (*GoHttpServer) StartServer

func (s *GoHttpServer) StartServer() error

StartServer initializes all the handlers paths of this web server, it is called inside the NewGoHttpServer constructor

Jump to

Keyboard shortcuts

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