json

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

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

type RecordsArray []types.Record

RecordsArray is an array of types.Record

func (*RecordsArray) UnmarshalJSON

func (r *RecordsArray) UnmarshalJSON(b []byte) error

type WriteProvidersRequest deprecated

type WriteProvidersRequest struct {
	Providers []types.Record
}

Deprecated: protocol-agnostic provide is being worked on in IPIP-378:

func (*WriteProvidersRequest) UnmarshalJSON

func (r *WriteProvidersRequest) UnmarshalJSON(b []byte) error

type WriteProvidersResponse deprecated

type WriteProvidersResponse struct {
	ProvideResults []types.Record
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL