Documentation ¶
Index ¶
- Variables
- type KeyPair
- func (kp *KeyPair) Generate() (*KeyPair, error)
- func (kp *KeyPair) LoadFromFile(dataDir string) (KeyPair, error)
- func (kp *KeyPair) PrivKey() *p2pcrypto.PrivKey
- func (kp *KeyPair) PrivKeyString() string
- func (kp *KeyPair) PubKey() *p2pcrypto.PubKey
- func (kp *KeyPair) PubKeyString() string
- func (kp *KeyPair) SaveToFile(dataDir string) error
- type KeyPairFile
- type P2P
- func (p *P2P) ConnectToPeer(target string) (*bufio.ReadWriter, error)
- func (p *P2P) GenerateKeyPair() error
- func (p *P2P) KeyPair() *KeyPair
- func (p *P2P) LoadKeyPairFromFile() error
- func (p *P2P) SaveKeyPairToFile() error
- func (p *P2P) SetKeyPair(keyPair *KeyPair) error
- func (p *P2P) StartHost() error
- type P2PRPC
- type PingArgs
- type PingReply
- type Stats
- type Type3Service
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func (*KeyPair) PrivKeyString ¶
func (*KeyPair) PubKeyString ¶
func (*KeyPair) SaveToFile ¶
type KeyPairFile ¶
type P2P ¶
type P2P struct { Host string `yaml:"host"` Port string `yaml:"port"` P2PHost host.Host // contains filtered or unexported fields }
func (*P2P) ConnectToPeer ¶
func (p *P2P) ConnectToPeer(target string) (*bufio.ReadWriter, error)
func (*P2P) GenerateKeyPair ¶
func (*P2P) LoadKeyPairFromFile ¶
func (*P2P) SaveKeyPairToFile ¶
func (*P2P) SetKeyPair ¶
type Type3Service ¶
type Type3Service struct{}
Click to show internal directories.
Click to hide internal directories.