Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 792 Bytes

api.md

File metadata and controls

25 lines (19 loc) · 792 Bytes

API Reference

简体中文 | Docs Index

This inventory is generated from go doc -short for the packages in this repository. It is a quick public-surface map; source files and tests remain the authority for exact semantics.

Packages

gnalloy.org/handler-traffic

Package name: traffic

var ErrInvalidConfig = errors.New("gnalloy/handler/traffic: invalid config") ...
func MessageSize(msg any) int
type ClockMillis func() int64
type Config struct{ ... }
type Controller struct{ ... }
    func NewController(cfg Config) (*Controller, error)
type Handler struct{ ... }
    func NewChannelHandler(cfg Config) (*Handler, error)
    func NewHandler(controller *Controller) *Handler
type Limiter interface{ ... }
type Snapshot struct{ ... }