table_rest

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserId

func GetUserId(auth_token string) (user_id string, err error)

GetUserId queries the database to turn an `auth_token` into a `user_id'. Called from server layer and used to compare the passed user_id with the tokens user_id.

func IsAuthorized

func IsAuthorized(www http.ResponseWriter, req *http.Request) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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