tools

package
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEmailConfig

func InitEmailConfig(server string, port int, from, name, password string)

InitEmailConfig init email config

func LoadKeyStore

func LoadKeyStore(keyfile, passfile string) (*keystore.Key, error)

LoadKeyStore load keystore from keyfile and passfile

func SafeReadFile

func SafeReadFile(file string) ([]byte, error)

SafeReadFile check permissions is '0400' and read file

func SendEmail

func SendEmail(to, cc []string, subject, content string) error

SendEmail send email

func SendEmailWithAttach

func SendEmailWithAttach(to, cc []string, subject, content string, attachFiles []string) error

SendEmailWithAttach send email with attach

Types

This section is empty.

Directories

Path Synopsis
Package crypto provides facilities for ecdsa encryption and decryption.
Package crypto provides facilities for ecdsa encryption and decryption.
Package keystore encrypt private key and save on disk uses JSON encoding.
Package keystore encrypt private key and save on disk uses JSON encoding.
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL