Documentation ¶
Index ¶
- func GenerateUniqueID() string
- func GenerateUserToken() string
- func GetIntDefault(c echo.Context, param string, def int) int
- func GetIntRange(c echo.Context, param string, min int, max int, def int) int
- func HandleRequestAndRedirect(res http.ResponseWriter, req *http.Request)
- func InitializeSecurity()
- func LinkToWebp(ctx context.Context, url string) ([]byte, error)
- func OneOf(c echo.Context, param string, options []string, def string) string
- func PutUint48(b []byte, v uint64)
- func RandomString(length int) string
- func RandomStringWithCharset(length int, charset string) string
- func ReWrapCtx(ctx context.Context) context.Context
- func RealIP(req *http.Request) string
- type ContextHeader
- type ContextRequest
- type ContextResponse
- type ContextValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueID ¶
func GenerateUniqueID() string
func GenerateUserToken ¶
func GenerateUserToken() string
func GetIntDefault ¶
func HandleRequestAndRedirect ¶
func HandleRequestAndRedirect(res http.ResponseWriter, req *http.Request)
func InitializeSecurity ¶
func InitializeSecurity()
func RandomString ¶
func RandomStringWithCharset ¶
Types ¶
type ContextHeader ¶
type ContextHeader struct{}
type ContextRequest ¶
type ContextRequest struct{}
type ContextResponse ¶
type ContextResponse struct{}
type ContextValidator ¶
type ContextValidator struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.