Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFile(path string) (file io.WriteCloser, err error)
- func DefaultStringGenerator() string
- func LimiterKeyGenerator(key []byte) func(c *fiber.Ctx) string
- func UniqueBytesGenerator(length int) []byte
- func UniqueStringGenerator(length int) string
- func UnsafeBytes(s string) (bs []byte)
- func UnsafeString(b []byte) string
- type URLSigner
Constants ¶
View Source
const DefaultBytes = 32
Variables ¶
View Source
var ErrInvalidUrl = errors.New("signature is invalid")
Functions ¶
func CreateFile ¶
func CreateFile(path string) (file io.WriteCloser, err error)
func DefaultStringGenerator ¶
func DefaultStringGenerator() string
func LimiterKeyGenerator ¶
func UniqueBytesGenerator ¶
UniqueBytesGenerator generates crypto random bytes
func UniqueStringGenerator ¶
UniqueStringGenerator - Generates crypto secure base64 encoded string
func UnsafeBytes ¶
#nosec G103 GetBytes returns a byte pointer without allocation
func UnsafeString ¶
#nosec G103 GetString returns a string pointer without allocation
Types ¶
Click to show internal directories.
Click to hide internal directories.