http

package
v0.0.0-...-3e848aa Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router represents http api router.

func NewRouter

func NewRouter(engine *gin.Engine, deps *depspkg.API) *Router

NewRouter creates a Router instance.

func (*Router) RegisterRouters

func (r *Router) RegisterRouters()

RegisterRouters registers all http api routers.

type Server

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

Server represents http server based on gin.

func NewServer

func NewServer(cfg *config.HTTP) *Server

NewServer creates a http server instance.

func (*Server) GetEngine

func (s *Server) GetEngine() *gin.Engine

GetEngine returns gin engine.

func (*Server) Run

func (s *Server) Run() error

Run runs http server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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