Documentation ¶
Index ¶
- Variables
- func CompactHash(data []byte) string
- func CompactUUID() string
- func ConnectDb() (*gorm.DB, error)
- func Contains(container, things []string) bool
- func DecodeJWTClose(raw, passphrase string, decoded interface{}) error
- func DecodeJWTOpen(raw string, decoded interface{}) error
- func DecodeJWTOpenFromKeys(raw string, keys *jose.JSONWebKeySet, decoded interface{}) error
- func Decrypt(passphrase string, ciphertext []byte) ([]byte, error)
- func DeriveKey(passphrase string) []byte
- func EncodeJWTClose(tok interface{}, passphrase string) (string, error)
- func EncodeJWTOpen(tok interface{}) (string, error)
- func Encrypt(passphrase string, plaintext []byte) ([]byte, error)
- func GetDb() *gorm.DB
- func IndexOf(it string, list []string) (int, bool)
- func LoadKey(keyFile string) error
- func PasswordHash(plaintext []byte) ([]byte, error)
- func PasswordHashValid(plaintext, hash []byte) bool
- func RenderEmailTemplate(template string, context map[string]interface{}) (subjectOutput, plainOutput, htmlOutput []byte, renderErr error)
- func RenderHTMLTemplate(template string, context map[string]interface{}) (output []byte, renderErr error)
- func RenderTemplate(style, template string, context map[string]interface{}) (output []byte, renderErr error)
- func Reverse(input *[]string)
- func SendMail(name, address, template string, context TemplateContext) error
- func SetDb(newDb *gorm.DB)
- func TrunkUrlFragment(domList []string) string
- type Cacher
- type IdpVerifierCache
- type RevMap
- type TemplateContext
- type VerifierCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Signer jose.Signer Keys *jose.JSONWebKeySet )
Functions ¶
func CompactHash ¶
func CompactUUID ¶
func CompactUUID() string
func DecodeJWTClose ¶
func DecodeJWTOpen ¶
func DecodeJWTOpenFromKeys ¶
func EncodeJWTClose ¶
func EncodeJWTOpen ¶
func PasswordHash ¶
func PasswordHashValid ¶
func RenderEmailTemplate ¶
func RenderHTMLTemplate ¶
func RenderTemplate ¶
func SendMail ¶
func SendMail(name, address, template string, context TemplateContext) error
func TrunkUrlFragment ¶
Types ¶
type IdpVerifierCache ¶
type IdpVerifierCache struct {
// contains filtered or unexported fields
}
func NewIdpVerifierCache ¶
func NewIdpVerifierCache() (newCacher *IdpVerifierCache)
func (*IdpVerifierCache) Fetch ¶
func (verifier *IdpVerifierCache) Fetch() (*jose.JSONWebKeySet, *RevMap, error)
type TemplateContext ¶
type TemplateContext map[string]interface{}
type VerifierCache ¶
Click to show internal directories.
Click to hide internal directories.