httpx

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 10 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 {
	Router *gin.Engine
	// contains filtered or unexported fields
}

Server is a http server.

func NewServer

func NewServer() (*Server, error)

NewServer is used to create a new http server.

func NewServerWithAPP

func NewServerWithAPP(ctx contextx.Contextx, app *configx.Application) (*Server, error)

NewServerWithAPP is used to create a new http server with app.

func NewServerWithContextx

func NewServerWithContextx(ctx contextx.Contextx) (*Server, error)

NewServerWithContextx is used to create a new http server.

func (*Server) Start

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

Start starts the http server.

func (*Server) Stop

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

Stop stops the http server.

Jump to

Keyboard shortcuts

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