Documentation
¶
Index ¶
Constants ¶
View Source
const ( ShowTeamUrlFormat = "/teams/%s" DeleteTeamUrlFormat = "/teams/%s" ShowAccountUrlFormat = "/accounts/%s" DeleteAccountUrlFormat = "/accounts/%s" DeleteOperatorUrlFormat = "/operators/%s" DeleteUserUrlFormat = "/users/%s" DownloadTokenAccountUrl = "/accounts/%s/token" DownloadCredentialsUserUrlFormat = "/users/%s/credentials" EdtiTeamsUrlFormat = "/teams/%s/edit" )
Variables ¶
View Source
var DefaultErrorHandler = func(c *fiber.Ctx, err error) error { code := fiber.StatusInternalServerError message := err.Error() // retrieve the custom error code if it's a *fiber.Error var e *fiber.Error if errors.As(err, &e) { code = e.Code } return c.Status(code).JSON(fiber.Map{"error": message, "code": code}) }
DefaultErrorHandler is the default error handler.
Functions ¶
func CreateNKeyPair ¶
func CreateNKeyPair(p nkeys.PrefixByte) (nkeys.KeyPair, error)
CreateNKeyPair creates a new NKey pair.
func ShortPubKey ¶ added in v0.1.24
ShortPubKey returns the first 8 characters of the public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.