json

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeersResponse added in v0.13.0

type PeersResponse struct {
	Peers []*types.PeerRecord
}

PeersResponse is the result of a GET Peers request.

type ProvidersResponse added in v0.13.0

type ProvidersResponse struct {
	Providers RecordsArray
}

ProvidersResponse is the result of a GET Providers request.

type RecordsArray added in v0.13.0

type RecordsArray []types.Record

RecordsArray is an array of types.Record

func (*RecordsArray) UnmarshalJSON added in v0.13.0

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