Documentation ¶
Index ¶
- func AddStaple(stapler service.Staplerer, userHandler service.UserHandlerer) echo.HandlerFunc
- func ArchiveStaple(stapler service.Staplerer) echo.HandlerFunc
- func ChangePassword(userHandler service.UserHandlerer) echo.HandlerFunc
- func DeleteStaple(stapler service.Staplerer) echo.HandlerFunc
- func GetMaximumStaples(userHandler service.UserHandlerer) echo.HandlerFunc
- func GetNext(staple service.Staplerer) echo.HandlerFunc
- func GetStaple(stapler service.Staplerer) echo.HandlerFunc
- func GetToken(c echo.Context) (*jwt.Token, error)
- func ListStaples(stapler service.Staplerer) echo.HandlerFunc
- func RegisterUser(userHandler service.UserHandlerer) echo.HandlerFunc
- func ResetPassword(userHandler service.UserHandlerer) echo.HandlerFunc
- func Serve() error
- func SetMaximumStaples(userHandler service.UserHandlerer) echo.HandlerFunc
- func ShowArchive(stapler service.Staplerer) echo.HandlerFunc
- func TokenHandler(userHandler service.UserHandlerer) echo.HandlerFunc
- func VerfiyConfirmCode(userHandler service.UserHandlerer) echo.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStaple ¶
func AddStaple(stapler service.Staplerer, userHandler service.UserHandlerer) echo.HandlerFunc
AddStaple creates a staple using a stapler and a given user. The following properties are enough: name, content
func ArchiveStaple ¶
ArchiveStaple archives a staple with a given ID.
func ChangePassword ¶
func ChangePassword(userHandler service.UserHandlerer) echo.HandlerFunc
ChangePassword let's the user change the account's password.
func DeleteStaple ¶
DeleteStaple deteles a staple with a given ID.
func GetMaximumStaples ¶
func GetMaximumStaples(userHandler service.UserHandlerer) echo.HandlerFunc
GetMaximumStaples returns the user's maximum staple count.
func GetToken ¶
func GetToken(c echo.Context) (*jwt.Token, error)
GetToken gets the JWT token from the echo context
func ListStaples ¶
ListStaples will list all staples which belong to a user.
func RegisterUser ¶
func RegisterUser(userHandler service.UserHandlerer) echo.HandlerFunc
RegisterUser takes a storer and creates a user entry.
func ResetPassword ¶
func ResetPassword(userHandler service.UserHandlerer) echo.HandlerFunc
ResetPassword takes a user handler and resets a user's password delievered from the token.
func SetMaximumStaples ¶
func SetMaximumStaples(userHandler service.UserHandlerer) echo.HandlerFunc
SetMaximumStaples let's the user change the maximum number of staples.
func ShowArchive ¶
ShowArchive returns the archived staples of a user.
func TokenHandler ¶
func TokenHandler(userHandler service.UserHandlerer) echo.HandlerFunc
TokenHandler creates a JWT token for a given user.
func VerfiyConfirmCode ¶
func VerfiyConfirmCode(userHandler service.UserHandlerer) echo.HandlerFunc
VerfiyConfirmCode verifies a confirm link generated by a reset password action.
Types ¶
This section is empty.