tools

package
v0.0.0-...-9bd9899 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserID

func CheckUserID(sess sqlbuilder.Database, uid uuid.UUID, o appbackend.UserObject, collection, field string, optional bool, factory func() appbackend.UserObject) error

CheckUserID - checks a given field value against a userID

func DecodeJSONBody

func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error

DecodeJSONBody -

func LoadFeedMediaPublicURLs

func LoadFeedMediaPublicURLs(fm appbackend.S3FileHolder) error

Types

type MalformedRequest

type MalformedRequest struct {
	Status int
	Msg    string
}

MalformedRequest - Json decoding error

func (*MalformedRequest) Error

func (mr *MalformedRequest) Error() string

Jump to

Keyboard shortcuts

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