Documentation ¶
Index ¶
- Constants
- Variables
- func CreateMnemonic(phrase string) (string, error)
- func MailgunSimpleEmail(sender, recipient, subject, body string) error
- func RandPasswordString(n int) string
- func RandString(n int) string
- func RandStringSimple(n int) string
- func ReadCredentials(path string) (*settings.Credentials, error)
- func ReadDialSettings(path string) (*settings.DialSettings, error)
- func WriteCredentials(cred *settings.Credentials, path string) error
- func WriteDialSettings(ds *settings.DialSettings, path string) error
Constants ¶
View Source
const ( MailgunEmailDomainENV = "MAILGUN_EMAIL_DOMAIN" MailgunApiKeyENV = "MAILGUN_API_KEY" )
View Source
const (
MinWordsInPassPhrase = 11
)
Variables ¶
View Source
var ( // ErrInvalidPassPhrase indicates that the pass phrase is too short ErrInvalidPassPhrase = errors.New("invalid pass phrase") )
Functions ¶
func CreateMnemonic ¶
func MailgunSimpleEmail ¶
MailgunSimpleEmail is a minimal email implementation
func RandPasswordString ¶
func RandString ¶
RandString returns a random sting of lenght n based on a..zA..z0..9
func RandStringSimple ¶
RandStringSimple returns a random sting of lenght n based on a..z0..9. This is basically the same as RandString but only case-insensitive.
func ReadCredentials ¶
func ReadCredentials(path string) (*settings.Credentials, error)
func ReadDialSettings ¶
func ReadDialSettings(path string) (*settings.DialSettings, error)
func WriteCredentials ¶
func WriteCredentials(cred *settings.Credentials, path string) error
func WriteDialSettings ¶
func WriteDialSettings(ds *settings.DialSettings, path string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.