httpx

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 11 Imported by: 0

README

xxx

介绍
  1. xxxx
  2. xxxx
  3. xxxx
安装教程

go get github.com/jageros/hawox

使用例子
package main

import (
	"fmt"
	"github.com/jageros/hawox/xxx"
)

func main() {
	/*
	xxxxx
	xxxxx
	xxxxx
	*/
}
使用说明
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindJsonArgs

func BindJsonArgs(c *gin.Context) (map[string]interface{}, bool)

func BindQueryArgs

func BindQueryArgs(c *gin.Context) (map[string]interface{}, bool)

func DecodeUrlVal

func DecodeUrlVal(c *gin.Context, key string) (string, bool)

func ErrInterrupt

func ErrInterrupt(c *gin.Context, err errcode.IErr)

func InitializeHttpServer

func InitializeHttpServer(ctx contextx.Context, registry func(engine *gin.Engine), opfs ...func(s *Server))

func PkgMsgWrite

func PkgMsgWrite(c *gin.Context, data interface{})

func RateMiddleware

func RateMiddleware(rateTime time.Duration) gin.HandlerFunc

Types

type Server

type Server struct {
	ListenIp     string // 监听IP
	Port         int    // 监听端口
	Mode         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	CloseTimeout time.Duration
	RateTime     time.Duration
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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