internal

package
v0.0.0-...-d17a93a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPClient = &fasthttp.Client{}
)

Functions

func B2S

func B2S(b []byte) string

func ReleaseReqCtx

func ReleaseReqCtx(c *ReqCtx)

func S2B

func S2B(s string) []byte

Types

type ReqCtx

type ReqCtx struct {
	Req fasthttp.Request
	Res fasthttp.Response
	Buf *bytes.Buffer
}

func AcquireReqCtx

func AcquireReqCtx() *ReqCtx

func (*ReqCtx) Reset

func (c *ReqCtx) Reset()

type UrlEncodeXWriter

type UrlEncodeXWriter struct {
	XWriter
}

func (*UrlEncodeXWriter) Write

func (w *UrlEncodeXWriter) Write(b []byte) (int, error)

func (*UrlEncodeXWriter) WriteByte

func (w *UrlEncodeXWriter) WriteByte(b byte) error

func (*UrlEncodeXWriter) WriteString

func (w *UrlEncodeXWriter) WriteString(s string) (int, error)

type XWriter

type XWriter interface {
	io.Writer
	io.ByteWriter
	io.StringWriter
}

Jump to

Keyboard shortcuts

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