Documentation
¶
Index ¶
- type Peer
- type PeerStore
- type Principal
- func (pr *Principal) AddPeer(peer Peer)
- func (pr *Principal) AsPeer() Peer
- func (pr *Principal) HasPeer(pub delphi.PublicKey) bool
- func (pr *Principal) ID() string
- func (pr *Principal) MarshalPEM() ([]byte, error)
- func (pr *Principal) MustBeValid()
- func (pr *Principal) NickName() string
- func (pr *Principal) SaveJSON(w io.Writer) error
- func (pr *Principal) UnmarshalPEM(data []byte) error
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { Props map[string]string `json:"Props"` PublicKey delphi.PublicKey `json:"pubkey"` }
func (*Peer) MarshalPEM ¶
func (*Peer) UnmarshalPEM ¶
type Principal ¶
type Principal struct { Props Props `json:"Props"` KeyPair delphi.KeyPair `json:"keypair"` Peers PeerStore `json:"peers"` }
func NewPrincipal ¶
func (*Principal) MarshalPEM ¶
func (*Principal) MustBeValid ¶
func (pr *Principal) MustBeValid()
func (*Principal) UnmarshalPEM ¶
Click to show internal directories.
Click to hide internal directories.