Documentation ¶
Index ¶
- Constants
- func ServiceSplice(s *splice.Splice, id nonce.ID, key *crypto.Pub, services []Service, ...)
- type Ad
- func (x *Ad) Decode(s *splice.Splice) (e error)
- func (x *Ad) Encode(s *splice.Splice) (e error)
- func (x *Ad) GetOnion() interface{}
- func (x *Ad) Len() int
- func (x *Ad) Magic() string
- func (x *Ad) Sign(prv *crypto.Prv) (e error)
- func (x *Ad) Splice(s *splice.Splice)
- func (x *Ad) SpliceNoSig(s *splice.Splice)
- func (x *Ad) Validate() (valid bool)
- type Service
Constants ¶
View Source
const ( Magic = "svad" ServiceLen = slice.Uint16Len + slice.Uint32Len )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ad ¶
Ad stores a specification for the fee rate and the service port, which must be a well known port to match with a type of service, eg 80 for web, 53 for DNS, etc. These are also attached to the PeerAd entry via concatenating "/service/N" where N is the index of the entry. A zero value at an index signals to stop scanning for more subsequent values.
func (*Ad) SpliceNoSig ¶
Click to show internal directories.
Click to hide internal directories.