helpers

package
v0.0.0-...-b5dcede Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string, cfg interface{}) error

LoadConfig read YAML-formatted config from filename into cfg.

func MinUint32

func MinUint32(a, b uint32) uint32

MinUint32 return the min of a and b.

func SetGlobalLimit

func SetGlobalLimit(limit int)

Types

type RateLimitedBuffer

type RateLimitedBuffer interface {
	Bytes() []byte
	Write([]byte) (int, error)
	Release()
}

func GetRawBody

func GetRawBody(ctx *fiber.Ctx) (RateLimitedBuffer, error)

type RateLimitedPool

type RateLimitedPool struct {
	// contains filtered or unexported fields
}

type RateLimitedPooledBuffer

type RateLimitedPooledBuffer struct {
	// contains filtered or unexported fields
}

func (*RateLimitedPooledBuffer) Bytes

func (l *RateLimitedPooledBuffer) Bytes() []byte

func (*RateLimitedPooledBuffer) Release

func (l *RateLimitedPooledBuffer) Release()

func (*RateLimitedPooledBuffer) Write

func (l *RateLimitedPooledBuffer) Write(msg []byte) (int, error)

type RateLimitedSliceBuffer

type RateLimitedSliceBuffer struct {
	// contains filtered or unexported fields
}

func (*RateLimitedSliceBuffer) Bytes

func (l *RateLimitedSliceBuffer) Bytes() []byte

func (*RateLimitedSliceBuffer) Release

func (l *RateLimitedSliceBuffer) Release()

func (*RateLimitedSliceBuffer) Write

func (l *RateLimitedSliceBuffer) Write(msg []byte) (int, error)

Jump to

Keyboard shortcuts

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