Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
Authorization is a middleware to check the token in Authorization header. It returns empty string if the token is not found or invalid.
func MemoryLimit ¶
Types ¶
type Option ¶
type Option func(*serverCfg)
func WithMemoryLimit ¶
func WithReadMemStats ¶
func WithReadMemStats(fn ReadMemStatsFn) Option
type ReadMemStatsFn ¶
Click to show internal directories.
Click to hide internal directories.