server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.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 Server

type Server struct {
	Config *domain.RuntimeConfig `checkinject:"required"`

	// admin routes, user routes, auth routes....
	UserRoutes     http.Handler `checkinject:"required"`
	AppspaceRouter http.Handler `checkinject:"required"`
	// contains filtered or unexported fields
}

Server struct sets all parameters about the server

func (*Server) Init

func (s *Server) Init()

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(res http.ResponseWriter, req *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start()

Start up the server so it listens for connections

Jump to

Keyboard shortcuts

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