Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(params CreateParams) (database.InsertAPIKeyParams, string, error)
Generate generates an API key, returning the key as a string as well as the database representation. It is the responsibility of the caller to insert it into the database.
Types ¶
type CreateParams ¶
Click to show internal directories.
Click to hide internal directories.