tools

package
v0.0.0-...-f387b46 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: GPL-3.0 Imports: 11 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

type Ring

type Ring struct {
	// contains filtered or unexported fields
}

Ring encapsulate of ring.Ring

func NewRing

func NewRing(capacity int) *Ring

NewRing constructor

func (*Ring) Add

func (r *Ring) Add(p interface{})

Add add element

func (*Ring) Do

func (r *Ring) Do(do func(interface{}) bool)

Do iterate and fileter out processed elements

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