httpx

package
v6.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinEngine

func GinEngine(mode string, cfg Config) *gin.Engine

func Init

func Init(cfg Config, handler http.Handler) func()

Types

type Alert

type Alert struct {
	BasicAuth gin.Accounts
	Enable    bool
}

type Config

type Config struct {
	Host             string
	Port             int
	CertFile         string
	KeyFile          string
	PProf            bool
	PrintAccessLog   bool
	ExposeMetrics    bool
	ShutdownTimeout  int
	MaxContentLength int64
	ReadTimeout      int
	WriteTimeout     int
	IdleTimeout      int
	JWTAuth          JWTAuth
	ProxyAuth        ProxyAuth
	Alert            Alert
	Pushgw           Pushgw
	Heartbeat        Heartbeat
	Service          Service
}

type Heartbeat

type Heartbeat struct {
	BasicAuth gin.Accounts
	Enable    bool
}

type JWTAuth

type JWTAuth struct {
	SigningKey     string
	AccessExpired  int64
	RefreshExpired int64
	RedisKeyPrefix string
}

type ProxyAuth

type ProxyAuth struct {
	Enable            bool
	HeaderUserNameKey string
	DefaultRoles      []string
}

type Pushgw

type Pushgw struct {
	BasicAuth gin.Accounts
	Enable    bool
}

type Service

type Service struct {
	BasicAuth gin.Accounts
	Enable    bool
}

Jump to

Keyboard shortcuts

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