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
Click to show internal directories.
Click to hide internal directories.