Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type Config ¶
type Config struct { *PrivateKey `json:"privateKey"` *AppConfig `json:"appConfig"` *RemotePeers `json:"remotePeers"` ListenAddrs []string `json:"listenAddrs"` Username string `json:"name"` }
func (*Config) ReadConfig ¶
type PrivateKey ¶
func (*PrivateKey) GenerateSecp256k1KeyPair ¶
func (p *PrivateKey) GenerateSecp256k1KeyPair() (crypto.PrivKey, crypto.PubKey)
func (*PrivateKey) IsPresent ¶
func (p *PrivateKey) IsPresent() bool
func (*PrivateKey) Write ¶
func (p *PrivateKey) Write(privKey *[]byte) error
type RemotePeer ¶
func (*RemotePeer) Addresses ¶
func (rp *RemotePeer) Addresses() []peer.AddrInfo
func (*RemotePeer) PeerId ¶
func (rp *RemotePeer) PeerId() *peer.ID
type RemotePeers ¶
type RemotePeers []*RemotePeer
Click to show internal directories.
Click to hide internal directories.