Documentation ¶
Index ¶
- func AuthStackWithOptUserEnd() middleware.Stack
- func AuthStackWithUserEnd() middleware.Stack
- func CheckPlantArchivedForFeed(fn httprouter.Handle) httprouter.Handle
- func CheckPlantArchivedForFeedEntry(fn httprouter.Handle) httprouter.Handle
- func CheckPlantArchivedForFeedMedia(fn httprouter.Handle) httprouter.Handle
- func CheckPlantArchivedForPlant(fn httprouter.Handle) httprouter.Handle
- func CheckPlantArchivedForTimelapse(fn httprouter.Handle) httprouter.Handle
- func CreateUserEndObjects(collection string, factory func() db.UserEndObject) middleware.Middleware
- func JwtTokenUserEndID(fn httprouter.Handle) httprouter.Handle
- func UpdateUserEndObjects(collection, field string) middleware.Middleware
- func UserEndIDRequired(fn httprouter.Handle) httprouter.Handle
- type UserEndIDContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthStackWithOptUserEnd ¶
func AuthStackWithOptUserEnd() middleware.Stack
AuthStackWithOptUserEnd - Adds userEndID from JWT claim, sets it as required
func AuthStackWithUserEnd ¶
func AuthStackWithUserEnd() middleware.Stack
AuthStackWithUserEnd - Adds userEndID from JWT claim, sets it as required
func CheckPlantArchivedForFeed ¶
func CheckPlantArchivedForFeed(fn httprouter.Handle) httprouter.Handle
func CheckPlantArchivedForFeedEntry ¶
func CheckPlantArchivedForFeedEntry(fn httprouter.Handle) httprouter.Handle
func CheckPlantArchivedForFeedMedia ¶
func CheckPlantArchivedForFeedMedia(fn httprouter.Handle) httprouter.Handle
func CheckPlantArchivedForPlant ¶
func CheckPlantArchivedForPlant(fn httprouter.Handle) httprouter.Handle
func CheckPlantArchivedForTimelapse ¶
func CheckPlantArchivedForTimelapse(fn httprouter.Handle) httprouter.Handle
func CreateUserEndObjects ¶
func CreateUserEndObjects(collection string, factory func() db.UserEndObject) middleware.Middleware
CreateUserEndObjects - creates the UserEnd object associated with the inserted object
func JwtTokenUserEndID ¶
func JwtTokenUserEndID(fn httprouter.Handle) httprouter.Handle
JwtTokenUserEndID - Sets the userEndID from the claim, does nothing if missing
func UpdateUserEndObjects ¶
func UpdateUserEndObjects(collection, field string) middleware.Middleware
UpdateUserEndObjects - sets the UserEnd object to dirty when updated
func UserEndIDRequired ¶
func UserEndIDRequired(fn httprouter.Handle) httprouter.Handle
UserEndIDRequired - Checks if the request has a userEndID
Types ¶
type UserEndIDContextKey ¶
type UserEndIDContextKey struct{}
UserEndIDContextKey - context key which stores the request's userEndID
Click to show internal directories.
Click to hide internal directories.