Documentation ¶
Index ¶
- type FuncAreWeHealthy
- type FuncAreWeReady
- type GoHttpServer
- func (s *GoHttpServer) AddGetRoute(baseURL string, urlPath string, handler echo.HandlerFunc)
- func (s *GoHttpServer) GetEcho() *echo.Echo
- func (s *GoHttpServer) GetHealthHandler(healthyFunc FuncAreWeHealthy, msg string) echo.HandlerFunc
- func (s *GoHttpServer) GetReadinessHandler(readyFunc FuncAreWeReady, msg string) echo.HandlerFunc
- func (s *GoHttpServer) GetRestrictedGroup() *echo.Group
- func (s *GoHttpServer) StartServer() error
- type JwtCustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncAreWeHealthy ¶
type FuncAreWeReady ¶
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, webRootDir string, content embed.FS, restrictedUrl string) *GoHttpServer
NewGoHttpServer is a constructor that initializes the server,routes and all fields in GoHttpServer type
func (*GoHttpServer) AddGetRoute ¶
func (s *GoHttpServer) AddGetRoute(baseURL string, urlPath string, handler echo.HandlerFunc)
AddGetRoute adds a handler for this web server
func (*GoHttpServer) GetEcho ¶
func (s *GoHttpServer) GetEcho() *echo.Echo
GetEcho returns a pointer to the Echo reference
func (*GoHttpServer) GetHealthHandler ¶
func (s *GoHttpServer) GetHealthHandler(healthyFunc FuncAreWeHealthy, msg string) echo.HandlerFunc
func (*GoHttpServer) GetReadinessHandler ¶
func (s *GoHttpServer) GetReadinessHandler(readyFunc FuncAreWeReady, msg string) echo.HandlerFunc
func (*GoHttpServer) GetRestrictedGroup ¶
func (s *GoHttpServer) GetRestrictedGroup() *echo.Group
GetRestrictedGroup adds a handler for this web server
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.