http

package
v0.0.0-...-e331df4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

HTTP handler structure.

func NewHandler

func NewHandler(config *config.HTTPConfig, graphql *graphql.Handler, signingKey string) *Handler

Creating a new HTTP handler.

func (*Handler) InitMiddleware

func (h *Handler) InitMiddleware(router fiber.Router)

Initialize http middleware.

func (*Handler) InitRoutes

func (h *Handler) InitRoutes(router fiber.Router)

Initialize http routes.

type Server

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

HTTP server structure.

func NewServer

func NewServer(config *config.HTTPConfig, handler *Handler) *Server

Creating a new application http server.

func (*Server) Run

func (s *Server) Run()

Running application http server.

func (*Server) Stop

func (s *Server) Stop()

Stopping application http server.

Jump to

Keyboard shortcuts

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