Documentation
¶
Index ¶
- func Authorize(authLevel AuthLevel, handler fiber.Handler) fiber.Handler
- func CheckAccessToken(accessToken string) (uid types.Uid, isValid bool)
- func ErrorResponse(ctx fiber.Ctx, text string) error
- func GetAccessToken(req *http.Request) string
- func GetIntParam(ctx fiber.Ctx, name string) int64
- func GetTopic(ctx fiber.Ctx) string
- func GetUid(ctx fiber.Ctx) types.Uid
- func WebService(app *fiber.App, group string, rs ...*Router)
- type AuthLevel
- type Option
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessToken ¶
CheckAccessToken check access token valid
func ErrorResponse ¶
func GetAccessToken ¶
GetAccessToken Get API key from an HTTP request.
func GetIntParam ¶
func WebService ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.