Documentation ¶
Overview ¶
Package util contains utility functions for Mute.
Index ¶
- Variables
- func ContainsString(sa []string, s string) bool
- func Cp(srcFile, destFile string) error
- func CreateDirs(dirs ...string) error
- func Fatal(err error)
- func MailboxAddress(pubkey *[ed25519.PublicKeySize]byte, server string) []byte
- func NewNymAddress(domain string, secret []byte, expire int64, singleUse bool, ...) (mixaddress, nymaddress string, err error)
- func Readline(fp *os.File) ([]byte, error)
- func StopProc(cmd *exec.Cmd) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented is returned if the used functionality is not implemented y
TODO: implement everything and remove.
View Source
var MixAddress string
MixAddress defines the mix address.
TODO: Allow multiple domains.
Functions ¶
func ContainsString ¶
ContainsString returns true, if the the string array sa contains the string s. Otherwise, it returns false.
func Fatal ¶
func Fatal(err error)
Fatal prints err to stderr and exits the process with exit code 1.
func MailboxAddress ¶
func MailboxAddress(pubkey *[ed25519.PublicKeySize]byte, server string) []byte
MailboxAddress returns the mailbox address for the given pubkey and server.
func NewNymAddress ¶
func NewNymAddress( domain string, secret []byte, expire int64, singleUse bool, minDelay, maxDelay int32, id string, pubkey *[ed25519.PublicKeySize]byte, server string, caCert []byte, ) (mixaddress, nymaddress string, err error)
NewNymAddress generates a new nym address.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package browser defines web browser related helper functions.
|
Package browser defines web browser related helper functions. |
Package bzero defines helper functions to zero sensitive memory.
|
Package bzero defines helper functions to zero sensitive memory. |
Package descriptors defines helper functions for common file descriptors.
|
Package descriptors defines helper functions for common file descriptors. |
Package digits defines helper functions to count the digits of integers.
|
Package digits defines helper functions to count the digits of integers. |
Package fuzzer provides a sequential fuzzer for testing purposes.
|
Package fuzzer provides a sequential fuzzer for testing purposes. |
Package git implements git wrappers.
|
Package git implements git wrappers. |
Package gotool implements wrappers for the Go tool.
|
Package gotool implements wrappers for the Go tool. |
Package home provides utility methods for application specific home directories.
|
Package home provides utility methods for application specific home directories. |
Package interrupt allows to handle interrupts.
|
Package interrupt allows to handle interrupts. |
Package jsonclient contains a JSON-RPC over HTTPS client for Mute.
|
Package jsonclient contains a JSON-RPC over HTTPS client for Mute. |
Package msgs defines some test messages for Mute unit tests.
|
Package msgs defines some test messages for Mute unit tests. |
Package times contains time utility functions for Mute.
|
Package times contains time utility functions for Mute. |
Package wallet defines wallet utility functions.
|
Package wallet defines wallet utility functions. |
Click to show internal directories.
Click to hide internal directories.