Documentation ¶
Index ¶
- func CreateLockedFile(path string) error
- func Date() string
- func EmailSuffix(email string) string
- func Expiry(expiry int64) int64
- func GenFileName(fileNameParts ...string) string
- func GenFilePath(dir, fileName string) string
- func IsFileNotExist(file string) bool
- func IsNotDir(dir string) bool
- func LoadFromYaml(path string, cfg interface{}) error
- func Lock(path string) (func(), error)
- func Md5sumOfBytes(data *[]byte) string
- func Md5sumOfFile(path string) (string, error)
- func NewTemplate(name, path string) (*template.Template, error)
- func Now() int64
- func RandStr(strSize int, randType string) string
- func RenderTemplate(tmpl *template.Template, data interface{}) (string, error)
- func WithFileLock(path string, handle func() error) error
- type SymmetricEncryption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLockedFile ¶
func EmailSuffix ¶
func GenFileName ¶
func GenFilePath ¶
func IsFileNotExist ¶
func LoadFromYaml ¶
func Md5sumOfBytes ¶
func Md5sumOfFile ¶
func RenderTemplate ¶
func WithFileLock ¶
Types ¶
type SymmetricEncryption ¶
type SymmetricEncryption interface { Encrypt(plaintext []byte) ([]byte, error) Decrypt(ciphertext []byte) ([]byte, error) }
func NewSymmetricEncryption ¶
func NewSymmetricEncryption(key, nonce string) (SymmetricEncryption, error)
Click to show internal directories.
Click to hide internal directories.