package json

import "go.dedis.ch/dela/core/ordering/cosipbft/blocksync/json"

Index

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.

Source Files

json.go

Version
v0.1.0 (latest)
Published
Apr 10, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
1 month ago

Tools for package owners.