httpx

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCorsMiddleware

func AddCorsMiddleware() gin.HandlerFunc

AddCorsMiddleware add cors middleware

Types

type Server

type Server struct {
	Router *gin.Engine
	// contains filtered or unexported fields
}

Server is an HTTP server.

func NewServer

func NewServer(app *configx.Application) (*Server, error)

NewServer is used to create a new HTTP server.

func (*Server) Start

func (s *Server) Start(ctx contextx.Contextx) error

Start is used to start the server.

func (*Server) Stop

func (s *Server) Stop(ctx contextx.Contextx) error

Stop is used to stop the server.

Jump to

Keyboard shortcuts

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