json

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageJSON

type MessageJSON struct {
	Message *SyncMessageJSON `json:",omitempty"`
	Request *SyncRequestJSON `json:",omitempty"`
	Reply   *SyncReplyJSON   `json:",omitempty"`
	Ack     *SyncAckJSON     `json:",omitempty"`
}

MessageJSON is the JSON representation of a sync message.

type SyncAckJSON

type SyncAckJSON struct{}

SyncAckJSON is the JSON representation of a sync acknowledgement.

type SyncMessageJSON

type SyncMessageJSON struct {
	Chain json.RawMessage
}

SyncMessageJSON is the JSON representation of a sync announcement.

type SyncReplyJSON

type SyncReplyJSON struct {
	Link json.RawMessage
}

SyncReplyJSON is the JSON representation of a sync reply.

type SyncRequestJSON

type SyncRequestJSON struct {
	From uint64
}

SyncRequestJSON is the JSON representation of a sync request.

Jump to

Keyboard shortcuts

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