Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeersResponse ¶
type PeersResponse struct {
Peers []*types.PeerRecord
}
PeersResponse is the result of a GET Peers request.
func (PeersResponse) Length ¶
func (r PeersResponse) Length() int
type ProvidersResponse ¶
type ProvidersResponse struct {
Providers RecordsArray
}
ProvidersResponse is the result of a GET Providers request.
func (ProvidersResponse) Length ¶
func (r ProvidersResponse) Length() int
type RecordsArray ¶
RecordsArray is an array of types.Record
func (*RecordsArray) UnmarshalJSON ¶
func (r *RecordsArray) UnmarshalJSON(b []byte) error
type WriteProvidersRequest
deprecated
Deprecated: protocol-agnostic provide is being worked on in IPIP-378:
func (*WriteProvidersRequest) UnmarshalJSON ¶
func (r *WriteProvidersRequest) UnmarshalJSON(b []byte) error
type WriteProvidersResponse
deprecated
Deprecated: protocol-agnostic provide is being worked on in IPIP-378:
func (WriteProvidersResponse) Length ¶
func (r WriteProvidersResponse) Length() int
func (*WriteProvidersResponse) UnmarshalJSON ¶
func (r *WriteProvidersResponse) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.