json

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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.

type ProvidersResponse

type ProvidersResponse struct {
	Providers RecordsArray
}

ProvidersResponse is the result of a GET Providers request.

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) 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