config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

nolint: dupl

nolint: dupl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInboxStore

func GetInboxStore() (stores.Inbox, error)

GetInboxStore create all the clients based on configuration

func GetKeystore

func GetKeystore() (*nacl.FileStore, error)

GetKeystore create new keystore from config

func GetPublicKeyFinders

func GetPublicKeyFinders() (map[string]mailbox.PubKeyFinder, error)

GetPublicKeyFinders in configured state

func GetReceivers

func GetReceivers() (map[string]mailbox.Receiver, error)

GetReceivers in configured state

func GetSenders

func GetSenders() (map[string]mailbox.Sender, error)

GetSenders in configured state

func GetSentStorage

func GetSentStorage() (stores.Sent, error)

GetSentStorage create all the clients based on configuration

func GetServerPort

func GetServerPort() int

func Init

func Init(cfgFile, logLevel string) error

Init reads in config file and ENV variables if set.

func MailchainHome

func MailchainHome() string

MailchainHome set home directory for mailchain

func Passphrase

func Passphrase(cmd *cobra.Command) (string, error)

Passphrase is extracted from the command

func SetKeystore

func SetKeystore(cmd *cobra.Command, keystoreType string) error

func SetPubKeyFinder

func SetPubKeyFinder(chain, network, pubkey string) error

func SetReceiver

func SetReceiver(chain, network, receiver string) error

func SetSender

func SetSender(chain, network, sender string) error

func SetSentStorage

func SetSentStorage(sentType string) error

func WriteConfig

func WriteConfig(cmd *cobra.Command, args []string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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