app

package
v0.0.0-...-d7ba688 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BearerToken

func BearerToken(token string, db *sqlx.DB) (common.Token, bool)

BearerToken parses a Token given in the Authorization header, with the Bearer prefix.

func GetTokenFull

func GetTokenFull(token string, db *sqlx.DB) (common.Token, bool)

GetTokenFull retrieves an user ID and their token privileges knowing their API token.

func Method

func Method(f func(md common.MethodData) common.CodeMessager, privilegesNeeded ...int) fasthttp.RequestHandler

Method wraps an API method to a HandlerFunc.

func PeppyMethod

func PeppyMethod(a func(c *fasthttp.RequestCtx, db *sqlx.DB)) fasthttp.RequestHandler

PeppyMethod generates a method for the peppyapi

func Start

func Start(conf common.Conf, dbO *sqlx.DB) *fhr.Router

Start begins taking HTTP connections.

Types

This section is empty.

Directories

Path Synopsis
Package internals has methods that suit none of the API packages.
Package internals has methods that suit none of the API packages.
Package peppy implements the osu! API as defined on the osu-api repository wiki (https://github.com/ppy/osu-api/wiki).
Package peppy implements the osu! API as defined on the osu-api repository wiki (https://github.com/ppy/osu-api/wiki).
Package v1 implements the first version of the Ripple API.
Package v1 implements the first version of the Ripple API.
Package websockets implements functionality related to the API websockets.
Package websockets implements functionality related to the API websockets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL