Help us shape the future of Go! Take the 2026 Go Developer Survey

sobject_sync

package
v0.57.30 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const SyncProtocolID = protocol.ID("alpha/so-sync/2")

SyncProtocolID is the protocol ID used for SO sync solicitation.

Variables

View Source
var ErrAccessDenied = errors.New("shared object synchronization access denied")

ErrAccessDenied means a participant no longer has readable object access.

Functions

This section is empty.

Types

type SOSync

type SOSync struct {
	// contains filtered or unexported fields
}

SOSync synchronizes one shared object over the session transport's child bus.

func NewSOSync

func NewSOSync(
	le *logrus.Entry,
	b bus.Bus,
	soID string,
	localObjectPeerID peer.ID,
	localObjectKey crypto.PrivKey,
	soHost *sobject.SOHost,
	peerAdmission func(peer.ID, bool),
	accessValidators ...SnapshotAccessValidator,
) *SOSync

NewSOSync constructs a new SOSync.

localObjectPeerID is the local storage identity checked against inbound state. The transport peer routes the sync stream but need not be a Space participant. localObjectKey must belong to localObjectPeerID and remains available for the SOSync lifetime. Authentication rejects a mismatched key. peerAdmission, when non-nil, observes explicit responses from peers permitted by local authority. Calls may be concurrent and must return promptly. A remote denial describes that source's response, not a local membership change.

func (*SOSync) Execute

func (s *SOSync) Execute(ctx context.Context) error

Execute runs the SO sync, emitting a SolicitProtocol directive and handling matched streams until ctx is canceled.

func (*SOSync) SetPeerConnectionObserver

func (s *SOSync) SetPeerConnectionObserver(observer func(remoteID peer.ID, connected bool, err error))

SetPeerConnectionObserver configures stream observation before Execute starts. The observer sees connected once a participant authenticates, then not connected with the error that ended the stream. It must return promptly; calls can come from concurrent peer streams.

func (*SOSync) SetPeerRecoveryObserver

func (s *SOSync) SetPeerRecoveryObserver(observer func(peer.ID, bool))

SetPeerRecoveryObserver configures source-recovery observation before Execute starts. The observer must return promptly; calls can come from concurrent peer streams.

type SOSyncAck

type SOSyncAck struct {

	// Revision releases the sender's pinned advertisement after receipt or decline.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

SOSyncAck releases a pinned advertisement.

func (*SOSyncAck) CloneMessageVT

func (m *SOSyncAck) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncAck) CloneVT

func (m *SOSyncAck) CloneVT() *SOSyncAck

func (*SOSyncAck) EqualMessageVT

func (this *SOSyncAck) EqualMessageVT(thatMsg any) bool

func (*SOSyncAck) EqualVT

func (this *SOSyncAck) EqualVT(that *SOSyncAck) bool

func (*SOSyncAck) GetRevision

func (x *SOSyncAck) GetRevision() uint64

func (*SOSyncAck) MarshalJSON

func (x *SOSyncAck) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncAck to JSON.

func (*SOSyncAck) MarshalProtoJSON

func (x *SOSyncAck) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncAck message to JSON.

func (*SOSyncAck) MarshalProtoText

func (x *SOSyncAck) MarshalProtoText() string

func (*SOSyncAck) MarshalToSizedBufferVT

func (m *SOSyncAck) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncAck) MarshalToVT

func (m *SOSyncAck) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncAck) MarshalVT

func (m *SOSyncAck) MarshalVT() (dAtA []byte, err error)

func (*SOSyncAck) ProtoMessage

func (*SOSyncAck) ProtoMessage()

func (*SOSyncAck) Reset

func (x *SOSyncAck) Reset()

func (*SOSyncAck) SizeVT

func (m *SOSyncAck) SizeVT() (n int)

func (*SOSyncAck) String

func (x *SOSyncAck) String() string

func (*SOSyncAck) UnmarshalJSON

func (x *SOSyncAck) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncAck from JSON.

func (*SOSyncAck) UnmarshalProtoJSON

func (x *SOSyncAck) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncAck message from JSON.

func (*SOSyncAck) UnmarshalVT

func (m *SOSyncAck) UnmarshalVT(dAtA []byte) error

type SOSyncAuthTranscript

type SOSyncAuthTranscript struct {

	// SharedObjectId binds the proof to one object.
	SharedObjectId string `protobuf:"bytes,1,opt,name=shared_object_id,json=sharedObjectId,proto3" json:"sharedObjectId,omitempty"`
	// SenderTransport is the authenticated transport identity producing the proof.
	SenderTransport []byte `protobuf:"bytes,2,opt,name=sender_transport,json=senderTransport,proto3" json:"senderTransport,omitempty"`
	// ReceiverTransport is the authenticated transport identity receiving the proof.
	ReceiverTransport []byte `protobuf:"bytes,3,opt,name=receiver_transport,json=receiverTransport,proto3" json:"receiverTransport,omitempty"`
	// SenderNonce is the challenge produced by the signing endpoint.
	SenderNonce []byte `protobuf:"bytes,4,opt,name=sender_nonce,json=senderNonce,proto3" json:"senderNonce,omitempty"`
	// ReceiverNonce is the challenge produced by the verifying endpoint.
	ReceiverNonce []byte `protobuf:"bytes,5,opt,name=receiver_nonce,json=receiverNonce,proto3" json:"receiverNonce,omitempty"`
	// contains filtered or unexported fields
}

SOSyncAuthTranscript is the canonical signed binding for one direction.

func (*SOSyncAuthTranscript) CloneMessageVT

func (*SOSyncAuthTranscript) CloneVT

func (*SOSyncAuthTranscript) EqualMessageVT

func (this *SOSyncAuthTranscript) EqualMessageVT(thatMsg any) bool

func (*SOSyncAuthTranscript) EqualVT

func (this *SOSyncAuthTranscript) EqualVT(that *SOSyncAuthTranscript) bool

func (*SOSyncAuthTranscript) GetReceiverNonce

func (x *SOSyncAuthTranscript) GetReceiverNonce() []byte

func (*SOSyncAuthTranscript) GetReceiverTransport

func (x *SOSyncAuthTranscript) GetReceiverTransport() []byte

func (*SOSyncAuthTranscript) GetSenderNonce

func (x *SOSyncAuthTranscript) GetSenderNonce() []byte

func (*SOSyncAuthTranscript) GetSenderTransport

func (x *SOSyncAuthTranscript) GetSenderTransport() []byte

func (*SOSyncAuthTranscript) GetSharedObjectId

func (x *SOSyncAuthTranscript) GetSharedObjectId() string

func (*SOSyncAuthTranscript) MarshalJSON

func (x *SOSyncAuthTranscript) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncAuthTranscript to JSON.

func (*SOSyncAuthTranscript) MarshalProtoJSON

func (x *SOSyncAuthTranscript) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncAuthTranscript message to JSON.

func (*SOSyncAuthTranscript) MarshalProtoText

func (x *SOSyncAuthTranscript) MarshalProtoText() string

func (*SOSyncAuthTranscript) MarshalToSizedBufferVT

func (m *SOSyncAuthTranscript) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncAuthTranscript) MarshalToVT

func (m *SOSyncAuthTranscript) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncAuthTranscript) MarshalVT

func (m *SOSyncAuthTranscript) MarshalVT() (dAtA []byte, err error)

func (*SOSyncAuthTranscript) ProtoMessage

func (*SOSyncAuthTranscript) ProtoMessage()

func (*SOSyncAuthTranscript) Reset

func (x *SOSyncAuthTranscript) Reset()

func (*SOSyncAuthTranscript) SizeVT

func (m *SOSyncAuthTranscript) SizeVT() (n int)

func (*SOSyncAuthTranscript) String

func (x *SOSyncAuthTranscript) String() string

func (*SOSyncAuthTranscript) UnmarshalJSON

func (x *SOSyncAuthTranscript) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncAuthTranscript from JSON.

func (*SOSyncAuthTranscript) UnmarshalProtoJSON

func (x *SOSyncAuthTranscript) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncAuthTranscript message from JSON.

func (*SOSyncAuthTranscript) UnmarshalVT

func (m *SOSyncAuthTranscript) UnmarshalVT(dAtA []byte) error

type SOSyncAuthorization

type SOSyncAuthorization struct {

	// Accepted permits this authenticated participant to proceed to data exchange.
	Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
	// contains filtered or unexported fields
}

SOSyncAuthorization reports the receiver's current admission decision.

func (*SOSyncAuthorization) CloneMessageVT

func (*SOSyncAuthorization) CloneVT

func (*SOSyncAuthorization) EqualMessageVT

func (this *SOSyncAuthorization) EqualMessageVT(thatMsg any) bool

func (*SOSyncAuthorization) EqualVT

func (this *SOSyncAuthorization) EqualVT(that *SOSyncAuthorization) bool

func (*SOSyncAuthorization) GetAccepted

func (x *SOSyncAuthorization) GetAccepted() bool

func (*SOSyncAuthorization) MarshalJSON

func (x *SOSyncAuthorization) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncAuthorization to JSON.

func (*SOSyncAuthorization) MarshalProtoJSON

func (x *SOSyncAuthorization) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncAuthorization message to JSON.

func (*SOSyncAuthorization) MarshalProtoText

func (x *SOSyncAuthorization) MarshalProtoText() string

func (*SOSyncAuthorization) MarshalToSizedBufferVT

func (m *SOSyncAuthorization) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncAuthorization) MarshalToVT

func (m *SOSyncAuthorization) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncAuthorization) MarshalVT

func (m *SOSyncAuthorization) MarshalVT() (dAtA []byte, err error)

func (*SOSyncAuthorization) ProtoMessage

func (*SOSyncAuthorization) ProtoMessage()

func (*SOSyncAuthorization) Reset

func (x *SOSyncAuthorization) Reset()

func (*SOSyncAuthorization) SizeVT

func (m *SOSyncAuthorization) SizeVT() (n int)

func (*SOSyncAuthorization) String

func (x *SOSyncAuthorization) String() string

func (*SOSyncAuthorization) UnmarshalJSON

func (x *SOSyncAuthorization) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncAuthorization from JSON.

func (*SOSyncAuthorization) UnmarshalProtoJSON

func (x *SOSyncAuthorization) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncAuthorization message from JSON.

func (*SOSyncAuthorization) UnmarshalVT

func (m *SOSyncAuthorization) UnmarshalVT(dAtA []byte) error

type SOSyncBranch

type SOSyncBranch struct {

	// Revision identifies the pinned target advertisement.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// Cursor is the hash immediately before the first page's first entry.
	Cursor []byte `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

SOSyncBranch precedes the history pages when the sender does not hold the requested base, so the two config chains diverged. The pages start after cursor, the sender's record at the requested floor, and the receiver merges the branches.

func (*SOSyncBranch) CloneMessageVT

func (m *SOSyncBranch) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncBranch) CloneVT

func (m *SOSyncBranch) CloneVT() *SOSyncBranch

func (*SOSyncBranch) EqualMessageVT

func (this *SOSyncBranch) EqualMessageVT(thatMsg any) bool

func (*SOSyncBranch) EqualVT

func (this *SOSyncBranch) EqualVT(that *SOSyncBranch) bool

func (*SOSyncBranch) GetCursor

func (x *SOSyncBranch) GetCursor() []byte

func (*SOSyncBranch) GetRevision

func (x *SOSyncBranch) GetRevision() uint64

func (*SOSyncBranch) MarshalJSON

func (x *SOSyncBranch) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncBranch to JSON.

func (*SOSyncBranch) MarshalProtoJSON

func (x *SOSyncBranch) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncBranch message to JSON.

func (*SOSyncBranch) MarshalProtoText

func (x *SOSyncBranch) MarshalProtoText() string

func (*SOSyncBranch) MarshalToSizedBufferVT

func (m *SOSyncBranch) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncBranch) MarshalToVT

func (m *SOSyncBranch) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncBranch) MarshalVT

func (m *SOSyncBranch) MarshalVT() (dAtA []byte, err error)

func (*SOSyncBranch) ProtoMessage

func (*SOSyncBranch) ProtoMessage()

func (*SOSyncBranch) Reset

func (x *SOSyncBranch) Reset()

func (*SOSyncBranch) SizeVT

func (m *SOSyncBranch) SizeVT() (n int)

func (*SOSyncBranch) String

func (x *SOSyncBranch) String() string

func (*SOSyncBranch) UnmarshalJSON

func (x *SOSyncBranch) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncBranch from JSON.

func (*SOSyncBranch) UnmarshalProtoJSON

func (x *SOSyncBranch) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncBranch message from JSON.

func (*SOSyncBranch) UnmarshalVT

func (m *SOSyncBranch) UnmarshalVT(dAtA []byte) error

type SOSyncChallenge

type SOSyncChallenge struct {

	// Nonce is exactly 32 random bytes, newly generated for this stream.
	Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

SOSyncChallenge provides fresh entropy for one stream authentication.

func (*SOSyncChallenge) CloneMessageVT

func (m *SOSyncChallenge) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncChallenge) CloneVT

func (m *SOSyncChallenge) CloneVT() *SOSyncChallenge

func (*SOSyncChallenge) EqualMessageVT

func (this *SOSyncChallenge) EqualMessageVT(thatMsg any) bool

func (*SOSyncChallenge) EqualVT

func (this *SOSyncChallenge) EqualVT(that *SOSyncChallenge) bool

func (*SOSyncChallenge) GetNonce

func (x *SOSyncChallenge) GetNonce() []byte

func (*SOSyncChallenge) MarshalJSON

func (x *SOSyncChallenge) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncChallenge to JSON.

func (*SOSyncChallenge) MarshalProtoJSON

func (x *SOSyncChallenge) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncChallenge message to JSON.

func (*SOSyncChallenge) MarshalProtoText

func (x *SOSyncChallenge) MarshalProtoText() string

func (*SOSyncChallenge) MarshalToSizedBufferVT

func (m *SOSyncChallenge) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncChallenge) MarshalToVT

func (m *SOSyncChallenge) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncChallenge) MarshalVT

func (m *SOSyncChallenge) MarshalVT() (dAtA []byte, err error)

func (*SOSyncChallenge) ProtoMessage

func (*SOSyncChallenge) ProtoMessage()

func (*SOSyncChallenge) Reset

func (x *SOSyncChallenge) Reset()

func (*SOSyncChallenge) SizeVT

func (m *SOSyncChallenge) SizeVT() (n int)

func (*SOSyncChallenge) String

func (x *SOSyncChallenge) String() string

func (*SOSyncChallenge) UnmarshalJSON

func (x *SOSyncChallenge) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncChallenge from JSON.

func (*SOSyncChallenge) UnmarshalProtoJSON

func (x *SOSyncChallenge) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncChallenge message from JSON.

func (*SOSyncChallenge) UnmarshalVT

func (m *SOSyncChallenge) UnmarshalVT(dAtA []byte) error

type SOSyncConfigSuffix

type SOSyncConfigSuffix struct {

	// Changes are contiguous, oldest-first signed transitions ending at the
	// sender's held head.
	Changes []*sobject.SOConfigChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

SOSyncConfigSuffix carries the sender's newest retained config changes after the receiver refused admission that the sender granted. The receiver adopts the changes that follow its held head, each authorized by the config before it, so a participant whose config predates the sender's key can admit it on the next stream. Neither side discloses state, and the refusing receiver discloses nothing.

func (*SOSyncConfigSuffix) CloneMessageVT

func (m *SOSyncConfigSuffix) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncConfigSuffix) CloneVT

func (m *SOSyncConfigSuffix) CloneVT() *SOSyncConfigSuffix

func (*SOSyncConfigSuffix) EqualMessageVT

func (this *SOSyncConfigSuffix) EqualMessageVT(thatMsg any) bool

func (*SOSyncConfigSuffix) EqualVT

func (this *SOSyncConfigSuffix) EqualVT(that *SOSyncConfigSuffix) bool

func (*SOSyncConfigSuffix) GetChanges

func (x *SOSyncConfigSuffix) GetChanges() []*sobject.SOConfigChange

func (*SOSyncConfigSuffix) MarshalJSON

func (x *SOSyncConfigSuffix) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncConfigSuffix to JSON.

func (*SOSyncConfigSuffix) MarshalProtoJSON

func (x *SOSyncConfigSuffix) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncConfigSuffix message to JSON.

func (*SOSyncConfigSuffix) MarshalProtoText

func (x *SOSyncConfigSuffix) MarshalProtoText() string

func (*SOSyncConfigSuffix) MarshalToSizedBufferVT

func (m *SOSyncConfigSuffix) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncConfigSuffix) MarshalToVT

func (m *SOSyncConfigSuffix) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncConfigSuffix) MarshalVT

func (m *SOSyncConfigSuffix) MarshalVT() (dAtA []byte, err error)

func (*SOSyncConfigSuffix) ProtoMessage

func (*SOSyncConfigSuffix) ProtoMessage()

func (*SOSyncConfigSuffix) Reset

func (x *SOSyncConfigSuffix) Reset()

func (*SOSyncConfigSuffix) SizeVT

func (m *SOSyncConfigSuffix) SizeVT() (n int)

func (*SOSyncConfigSuffix) String

func (x *SOSyncConfigSuffix) String() string

func (*SOSyncConfigSuffix) UnmarshalJSON

func (x *SOSyncConfigSuffix) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncConfigSuffix from JSON.

func (*SOSyncConfigSuffix) UnmarshalProtoJSON

func (x *SOSyncConfigSuffix) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncConfigSuffix message from JSON.

func (*SOSyncConfigSuffix) UnmarshalVT

func (m *SOSyncConfigSuffix) UnmarshalVT(dAtA []byte) error

type SOSyncHead

type SOSyncHead struct {

	// Revision increases for each advertised state on this stream.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// ConfigHash identifies the advertised configuration head.
	ConfigHash []byte `protobuf:"bytes,2,opt,name=config_hash,json=configHash,proto3" json:"configHash,omitempty"`
	// ConfigSeqno is the configuration-chain sequence at ConfigHash.
	ConfigSeqno uint64 `protobuf:"varint,3,opt,name=config_seqno,json=configSeqno,proto3" json:"configSeqno,omitempty"`
	// StateHash is SHA-256 of the serialized transferable snapshot; it grants no authority.
	StateHash []byte `protobuf:"bytes,4,opt,name=state_hash,json=stateHash,proto3" json:"stateHash,omitempty"`
	// contains filtered or unexported fields
}

SOSyncHead remains pinned until its revision is acknowledged.

func (*SOSyncHead) CloneMessageVT

func (m *SOSyncHead) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncHead) CloneVT

func (m *SOSyncHead) CloneVT() *SOSyncHead

func (*SOSyncHead) EqualMessageVT

func (this *SOSyncHead) EqualMessageVT(thatMsg any) bool

func (*SOSyncHead) EqualVT

func (this *SOSyncHead) EqualVT(that *SOSyncHead) bool

func (*SOSyncHead) GetConfigHash

func (x *SOSyncHead) GetConfigHash() []byte

func (*SOSyncHead) GetConfigSeqno

func (x *SOSyncHead) GetConfigSeqno() uint64

func (*SOSyncHead) GetRevision

func (x *SOSyncHead) GetRevision() uint64

func (*SOSyncHead) GetStateHash

func (x *SOSyncHead) GetStateHash() []byte

func (*SOSyncHead) MarshalJSON

func (x *SOSyncHead) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncHead to JSON.

func (*SOSyncHead) MarshalProtoJSON

func (x *SOSyncHead) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncHead message to JSON.

func (*SOSyncHead) MarshalProtoText

func (x *SOSyncHead) MarshalProtoText() string

func (*SOSyncHead) MarshalToSizedBufferVT

func (m *SOSyncHead) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncHead) MarshalToVT

func (m *SOSyncHead) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncHead) MarshalVT

func (m *SOSyncHead) MarshalVT() (dAtA []byte, err error)

func (*SOSyncHead) ProtoMessage

func (*SOSyncHead) ProtoMessage()

func (*SOSyncHead) Reset

func (x *SOSyncHead) Reset()

func (*SOSyncHead) SizeVT

func (m *SOSyncHead) SizeVT() (n int)

func (*SOSyncHead) String

func (x *SOSyncHead) String() string

func (*SOSyncHead) UnmarshalJSON

func (x *SOSyncHead) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncHead from JSON.

func (*SOSyncHead) UnmarshalProtoJSON

func (x *SOSyncHead) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncHead message from JSON.

func (*SOSyncHead) UnmarshalVT

func (m *SOSyncHead) UnmarshalVT(dAtA []byte) error

type SOSyncHistoryPage

type SOSyncHistoryPage struct {

	// Revision identifies the pinned target advertisement.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// Cursor is the hash immediately before this page's first entry.
	Cursor []byte `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// Changes are contiguous, oldest-first signed transitions.
	Changes []*sobject.SOConfigChange `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

SOSyncHistoryPage advances the request's cursor without adopting any state.

func (*SOSyncHistoryPage) CloneMessageVT

func (m *SOSyncHistoryPage) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncHistoryPage) CloneVT

func (m *SOSyncHistoryPage) CloneVT() *SOSyncHistoryPage

func (*SOSyncHistoryPage) EqualMessageVT

func (this *SOSyncHistoryPage) EqualMessageVT(thatMsg any) bool

func (*SOSyncHistoryPage) EqualVT

func (this *SOSyncHistoryPage) EqualVT(that *SOSyncHistoryPage) bool

func (*SOSyncHistoryPage) GetChanges

func (x *SOSyncHistoryPage) GetChanges() []*sobject.SOConfigChange

func (*SOSyncHistoryPage) GetCursor

func (x *SOSyncHistoryPage) GetCursor() []byte

func (*SOSyncHistoryPage) GetRevision

func (x *SOSyncHistoryPage) GetRevision() uint64

func (*SOSyncHistoryPage) MarshalJSON

func (x *SOSyncHistoryPage) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncHistoryPage to JSON.

func (*SOSyncHistoryPage) MarshalProtoJSON

func (x *SOSyncHistoryPage) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncHistoryPage message to JSON.

func (*SOSyncHistoryPage) MarshalProtoText

func (x *SOSyncHistoryPage) MarshalProtoText() string

func (*SOSyncHistoryPage) MarshalToSizedBufferVT

func (m *SOSyncHistoryPage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncHistoryPage) MarshalToVT

func (m *SOSyncHistoryPage) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncHistoryPage) MarshalVT

func (m *SOSyncHistoryPage) MarshalVT() (dAtA []byte, err error)

func (*SOSyncHistoryPage) ProtoMessage

func (*SOSyncHistoryPage) ProtoMessage()

func (*SOSyncHistoryPage) Reset

func (x *SOSyncHistoryPage) Reset()

func (*SOSyncHistoryPage) SizeVT

func (m *SOSyncHistoryPage) SizeVT() (n int)

func (*SOSyncHistoryPage) String

func (x *SOSyncHistoryPage) String() string

func (*SOSyncHistoryPage) UnmarshalJSON

func (x *SOSyncHistoryPage) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncHistoryPage from JSON.

func (*SOSyncHistoryPage) UnmarshalProtoJSON

func (x *SOSyncHistoryPage) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncHistoryPage message from JSON.

func (*SOSyncHistoryPage) UnmarshalVT

func (m *SOSyncHistoryPage) UnmarshalVT(dAtA []byte) error

type SOSyncHistoryRequest

type SOSyncHistoryRequest struct {

	// Revision identifies the peer's pinned advertisement.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// BaseHash identifies the receiver's exact trusted checkpoint.
	BaseHash []byte `protobuf:"bytes,2,opt,name=base_hash,json=baseHash,proto3" json:"baseHash,omitempty"`
	// FloorSeqno is the config sequence of the receiver's held checkpoint. A
	// sender that does not hold base_hash sends its branch above it instead.
	FloorSeqno uint64 `protobuf:"varint,3,opt,name=floor_seqno,json=floorSeqno,proto3" json:"floorSeqno,omitempty"`
	// contains filtered or unexported fields
}

SOSyncHistoryRequest requests one complete candidate rooted in held trust.

func (*SOSyncHistoryRequest) CloneMessageVT

func (*SOSyncHistoryRequest) CloneVT

func (*SOSyncHistoryRequest) EqualMessageVT

func (this *SOSyncHistoryRequest) EqualMessageVT(thatMsg any) bool

func (*SOSyncHistoryRequest) EqualVT

func (this *SOSyncHistoryRequest) EqualVT(that *SOSyncHistoryRequest) bool

func (*SOSyncHistoryRequest) GetBaseHash

func (x *SOSyncHistoryRequest) GetBaseHash() []byte

func (*SOSyncHistoryRequest) GetFloorSeqno

func (x *SOSyncHistoryRequest) GetFloorSeqno() uint64

func (*SOSyncHistoryRequest) GetRevision

func (x *SOSyncHistoryRequest) GetRevision() uint64

func (*SOSyncHistoryRequest) MarshalJSON

func (x *SOSyncHistoryRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncHistoryRequest to JSON.

func (*SOSyncHistoryRequest) MarshalProtoJSON

func (x *SOSyncHistoryRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncHistoryRequest message to JSON.

func (*SOSyncHistoryRequest) MarshalProtoText

func (x *SOSyncHistoryRequest) MarshalProtoText() string

func (*SOSyncHistoryRequest) MarshalToSizedBufferVT

func (m *SOSyncHistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncHistoryRequest) MarshalToVT

func (m *SOSyncHistoryRequest) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncHistoryRequest) MarshalVT

func (m *SOSyncHistoryRequest) MarshalVT() (dAtA []byte, err error)

func (*SOSyncHistoryRequest) ProtoMessage

func (*SOSyncHistoryRequest) ProtoMessage()

func (*SOSyncHistoryRequest) Reset

func (x *SOSyncHistoryRequest) Reset()

func (*SOSyncHistoryRequest) SizeVT

func (m *SOSyncHistoryRequest) SizeVT() (n int)

func (*SOSyncHistoryRequest) String

func (x *SOSyncHistoryRequest) String() string

func (*SOSyncHistoryRequest) UnmarshalJSON

func (x *SOSyncHistoryRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncHistoryRequest from JSON.

func (*SOSyncHistoryRequest) UnmarshalProtoJSON

func (x *SOSyncHistoryRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncHistoryRequest message from JSON.

func (*SOSyncHistoryRequest) UnmarshalVT

func (m *SOSyncHistoryRequest) UnmarshalVT(dAtA []byte) error

type SOSyncMessage

type SOSyncMessage struct {

	// Body is the message body.
	//
	// Types that are assignable to Body:
	//	*SOSyncMessage_Snapshot
	//	*SOSyncMessage_Ack
	//	*SOSyncMessage_Challenge
	//	*SOSyncMessage_Proof
	//	*SOSyncMessage_Authorization
	//	*SOSyncMessage_Head
	//	*SOSyncMessage_HistoryRequest
	//	*SOSyncMessage_HistoryPage
	//	*SOSyncMessage_RecoveryRequired
	//	*SOSyncMessage_Branch
	//	*SOSyncMessage_ConfigSuffix
	Body isSOSyncMessage_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

SOSyncMessage is the bidirectional message on the solicit stream.

func (*SOSyncMessage) CloneMessageVT

func (m *SOSyncMessage) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncMessage) CloneVT

func (m *SOSyncMessage) CloneVT() *SOSyncMessage

func (*SOSyncMessage) EqualMessageVT

func (this *SOSyncMessage) EqualMessageVT(thatMsg any) bool

func (*SOSyncMessage) EqualVT

func (this *SOSyncMessage) EqualVT(that *SOSyncMessage) bool

func (*SOSyncMessage) GetAck

func (x *SOSyncMessage) GetAck() *SOSyncAck

func (*SOSyncMessage) GetAuthorization

func (x *SOSyncMessage) GetAuthorization() *SOSyncAuthorization

func (*SOSyncMessage) GetBody

func (m *SOSyncMessage) GetBody() isSOSyncMessage_Body

func (*SOSyncMessage) GetBranch

func (x *SOSyncMessage) GetBranch() *SOSyncBranch

func (*SOSyncMessage) GetChallenge

func (x *SOSyncMessage) GetChallenge() *SOSyncChallenge

func (*SOSyncMessage) GetConfigSuffix

func (x *SOSyncMessage) GetConfigSuffix() *SOSyncConfigSuffix

func (*SOSyncMessage) GetHead

func (x *SOSyncMessage) GetHead() *SOSyncHead

func (*SOSyncMessage) GetHistoryPage

func (x *SOSyncMessage) GetHistoryPage() *SOSyncHistoryPage

func (*SOSyncMessage) GetHistoryRequest

func (x *SOSyncMessage) GetHistoryRequest() *SOSyncHistoryRequest

func (*SOSyncMessage) GetProof

func (x *SOSyncMessage) GetProof() *peer.Signature

func (*SOSyncMessage) GetRecoveryRequired

func (x *SOSyncMessage) GetRecoveryRequired() *SOSyncRecoveryRequired

func (*SOSyncMessage) GetSnapshot

func (x *SOSyncMessage) GetSnapshot() *SOSyncSnapshot

func (*SOSyncMessage) MarshalJSON

func (x *SOSyncMessage) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncMessage to JSON.

func (*SOSyncMessage) MarshalProtoJSON

func (x *SOSyncMessage) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncMessage message to JSON.

func (*SOSyncMessage) MarshalProtoText

func (x *SOSyncMessage) MarshalProtoText() string

func (*SOSyncMessage) MarshalToSizedBufferVT

func (m *SOSyncMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage) MarshalToVT

func (m *SOSyncMessage) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage) MarshalVT

func (m *SOSyncMessage) MarshalVT() (dAtA []byte, err error)

func (*SOSyncMessage) ProtoMessage

func (*SOSyncMessage) ProtoMessage()

func (*SOSyncMessage) Reset

func (x *SOSyncMessage) Reset()

func (*SOSyncMessage) SizeVT

func (m *SOSyncMessage) SizeVT() (n int)

func (*SOSyncMessage) String

func (x *SOSyncMessage) String() string

func (*SOSyncMessage) UnmarshalJSON

func (x *SOSyncMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncMessage from JSON.

func (*SOSyncMessage) UnmarshalProtoJSON

func (x *SOSyncMessage) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncMessage message from JSON.

func (*SOSyncMessage) UnmarshalVT

func (m *SOSyncMessage) UnmarshalVT(dAtA []byte) error

type SOSyncMessage_Ack

type SOSyncMessage_Ack struct {
	// Ack releases a pinned advertisement.
	Ack *SOSyncAck `protobuf:"bytes,3,opt,name=ack,proto3,oneof"`
}

func (*SOSyncMessage_Ack) CloneOneofVT

func (m *SOSyncMessage_Ack) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Ack) CloneVT

func (m *SOSyncMessage_Ack) CloneVT() *SOSyncMessage_Ack

func (*SOSyncMessage_Ack) EqualVT

func (this *SOSyncMessage_Ack) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Ack) MarshalToSizedBufferVT

func (m *SOSyncMessage_Ack) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Ack) MarshalToVT

func (m *SOSyncMessage_Ack) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Ack) SizeVT

func (m *SOSyncMessage_Ack) SizeVT() (n int)

type SOSyncMessage_Authorization

type SOSyncMessage_Authorization struct {
	// Authorization reports acceptance without revealing configuration data.
	Authorization *SOSyncAuthorization `protobuf:"bytes,6,opt,name=authorization,proto3,oneof"`
}

func (*SOSyncMessage_Authorization) CloneOneofVT

func (m *SOSyncMessage_Authorization) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Authorization) CloneVT

func (*SOSyncMessage_Authorization) EqualVT

func (this *SOSyncMessage_Authorization) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Authorization) MarshalToSizedBufferVT

func (m *SOSyncMessage_Authorization) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Authorization) MarshalToVT

func (m *SOSyncMessage_Authorization) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Authorization) SizeVT

func (m *SOSyncMessage_Authorization) SizeVT() (n int)

type SOSyncMessage_Branch

type SOSyncMessage_Branch struct {
	// Branch reports that history pages start after an earlier common head.
	Branch *SOSyncBranch `protobuf:"bytes,11,opt,name=branch,proto3,oneof"`
}

func (*SOSyncMessage_Branch) CloneOneofVT

func (m *SOSyncMessage_Branch) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Branch) CloneVT

func (*SOSyncMessage_Branch) EqualVT

func (this *SOSyncMessage_Branch) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Branch) MarshalToSizedBufferVT

func (m *SOSyncMessage_Branch) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Branch) MarshalToVT

func (m *SOSyncMessage_Branch) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Branch) SizeVT

func (m *SOSyncMessage_Branch) SizeVT() (n int)

type SOSyncMessage_Challenge

type SOSyncMessage_Challenge struct {
	// Challenge begins authentication without disclosing object state.
	Challenge *SOSyncChallenge `protobuf:"bytes,4,opt,name=challenge,proto3,oneof"`
}

func (*SOSyncMessage_Challenge) CloneOneofVT

func (m *SOSyncMessage_Challenge) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Challenge) CloneVT

func (*SOSyncMessage_Challenge) EqualVT

func (this *SOSyncMessage_Challenge) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Challenge) MarshalToSizedBufferVT

func (m *SOSyncMessage_Challenge) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Challenge) MarshalToVT

func (m *SOSyncMessage_Challenge) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Challenge) SizeVT

func (m *SOSyncMessage_Challenge) SizeVT() (n int)

type SOSyncMessage_ConfigSuffix

type SOSyncMessage_ConfigSuffix struct {
	// ConfigSuffix carries config history to a participant that refused this
	// sender's admission.
	ConfigSuffix *SOSyncConfigSuffix `protobuf:"bytes,12,opt,name=config_suffix,json=configSuffix,proto3,oneof"`
}

func (*SOSyncMessage_ConfigSuffix) CloneOneofVT

func (m *SOSyncMessage_ConfigSuffix) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_ConfigSuffix) CloneVT

func (*SOSyncMessage_ConfigSuffix) EqualVT

func (this *SOSyncMessage_ConfigSuffix) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_ConfigSuffix) MarshalToSizedBufferVT

func (m *SOSyncMessage_ConfigSuffix) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_ConfigSuffix) MarshalToVT

func (m *SOSyncMessage_ConfigSuffix) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_ConfigSuffix) SizeVT

func (m *SOSyncMessage_ConfigSuffix) SizeVT() (n int)

type SOSyncMessage_Head

type SOSyncMessage_Head struct {
	// Head advertises a pinned state after authentication.
	Head *SOSyncHead `protobuf:"bytes,7,opt,name=head,proto3,oneof"`
}

func (*SOSyncMessage_Head) CloneOneofVT

func (m *SOSyncMessage_Head) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Head) CloneVT

func (m *SOSyncMessage_Head) CloneVT() *SOSyncMessage_Head

func (*SOSyncMessage_Head) EqualVT

func (this *SOSyncMessage_Head) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Head) MarshalToSizedBufferVT

func (m *SOSyncMessage_Head) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Head) MarshalToVT

func (m *SOSyncMessage_Head) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Head) SizeVT

func (m *SOSyncMessage_Head) SizeVT() (n int)

type SOSyncMessage_HistoryPage

type SOSyncMessage_HistoryPage struct {
	// HistoryPage carries one bounded contiguous suffix page.
	HistoryPage *SOSyncHistoryPage `protobuf:"bytes,9,opt,name=history_page,json=historyPage,proto3,oneof"`
}

func (*SOSyncMessage_HistoryPage) CloneOneofVT

func (m *SOSyncMessage_HistoryPage) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_HistoryPage) CloneVT

func (*SOSyncMessage_HistoryPage) EqualVT

func (this *SOSyncMessage_HistoryPage) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_HistoryPage) MarshalToSizedBufferVT

func (m *SOSyncMessage_HistoryPage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_HistoryPage) MarshalToVT

func (m *SOSyncMessage_HistoryPage) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_HistoryPage) SizeVT

func (m *SOSyncMessage_HistoryPage) SizeVT() (n int)

type SOSyncMessage_HistoryRequest

type SOSyncMessage_HistoryRequest struct {
	// HistoryRequest asks for a suffix from the receiver's held checkpoint.
	HistoryRequest *SOSyncHistoryRequest `protobuf:"bytes,8,opt,name=history_request,json=historyRequest,proto3,oneof"`
}

func (*SOSyncMessage_HistoryRequest) CloneOneofVT

func (m *SOSyncMessage_HistoryRequest) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_HistoryRequest) CloneVT

func (*SOSyncMessage_HistoryRequest) EqualVT

func (this *SOSyncMessage_HistoryRequest) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_HistoryRequest) MarshalToSizedBufferVT

func (m *SOSyncMessage_HistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_HistoryRequest) MarshalToVT

func (m *SOSyncMessage_HistoryRequest) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_HistoryRequest) SizeVT

func (m *SOSyncMessage_HistoryRequest) SizeVT() (n int)

type SOSyncMessage_Proof

type SOSyncMessage_Proof struct {
	// Proof binds the participant signing key to this transport exchange.
	Proof *peer.Signature `protobuf:"bytes,5,opt,name=proof,proto3,oneof"`
}

func (*SOSyncMessage_Proof) CloneOneofVT

func (m *SOSyncMessage_Proof) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Proof) CloneVT

func (*SOSyncMessage_Proof) EqualVT

func (this *SOSyncMessage_Proof) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Proof) MarshalToSizedBufferVT

func (m *SOSyncMessage_Proof) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Proof) MarshalToVT

func (m *SOSyncMessage_Proof) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Proof) SizeVT

func (m *SOSyncMessage_Proof) SizeVT() (n int)

type SOSyncMessage_RecoveryRequired

type SOSyncMessage_RecoveryRequired struct {
	// RecoveryRequired reports that trusted recovery must replace this exchange.
	RecoveryRequired *SOSyncRecoveryRequired `protobuf:"bytes,10,opt,name=recovery_required,json=recoveryRequired,proto3,oneof"`
}

func (*SOSyncMessage_RecoveryRequired) CloneOneofVT

func (m *SOSyncMessage_RecoveryRequired) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_RecoveryRequired) CloneVT

func (*SOSyncMessage_RecoveryRequired) EqualVT

func (this *SOSyncMessage_RecoveryRequired) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_RecoveryRequired) MarshalToSizedBufferVT

func (m *SOSyncMessage_RecoveryRequired) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_RecoveryRequired) MarshalToVT

func (m *SOSyncMessage_RecoveryRequired) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_RecoveryRequired) SizeVT

func (m *SOSyncMessage_RecoveryRequired) SizeVT() (n int)

type SOSyncMessage_Snapshot

type SOSyncMessage_Snapshot struct {
	// Snapshot is a full SOState snapshot exchanged after mutual authentication.
	Snapshot *SOSyncSnapshot `protobuf:"bytes,1,opt,name=snapshot,proto3,oneof"`
}

func (*SOSyncMessage_Snapshot) CloneOneofVT

func (m *SOSyncMessage_Snapshot) CloneOneofVT() isSOSyncMessage_Body

func (*SOSyncMessage_Snapshot) CloneVT

func (*SOSyncMessage_Snapshot) EqualVT

func (this *SOSyncMessage_Snapshot) EqualVT(thatIface isSOSyncMessage_Body) bool

func (*SOSyncMessage_Snapshot) MarshalToSizedBufferVT

func (m *SOSyncMessage_Snapshot) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Snapshot) MarshalToVT

func (m *SOSyncMessage_Snapshot) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncMessage_Snapshot) SizeVT

func (m *SOSyncMessage_Snapshot) SizeVT() (n int)

type SOSyncRecoveryRequired

type SOSyncRecoveryRequired struct {

	// Revision identifies the advertisement whose history could not be supplied.
	Revision uint64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

SOSyncRecoveryRequired ends catch-up without changing receiver-held state.

func (*SOSyncRecoveryRequired) CloneMessageVT

func (*SOSyncRecoveryRequired) CloneVT

func (*SOSyncRecoveryRequired) EqualMessageVT

func (this *SOSyncRecoveryRequired) EqualMessageVT(thatMsg any) bool

func (*SOSyncRecoveryRequired) EqualVT

func (this *SOSyncRecoveryRequired) EqualVT(that *SOSyncRecoveryRequired) bool

func (*SOSyncRecoveryRequired) GetRevision

func (x *SOSyncRecoveryRequired) GetRevision() uint64

func (*SOSyncRecoveryRequired) MarshalJSON

func (x *SOSyncRecoveryRequired) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncRecoveryRequired to JSON.

func (*SOSyncRecoveryRequired) MarshalProtoJSON

func (x *SOSyncRecoveryRequired) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncRecoveryRequired message to JSON.

func (*SOSyncRecoveryRequired) MarshalProtoText

func (x *SOSyncRecoveryRequired) MarshalProtoText() string

func (*SOSyncRecoveryRequired) MarshalToSizedBufferVT

func (m *SOSyncRecoveryRequired) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncRecoveryRequired) MarshalToVT

func (m *SOSyncRecoveryRequired) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncRecoveryRequired) MarshalVT

func (m *SOSyncRecoveryRequired) MarshalVT() (dAtA []byte, err error)

func (*SOSyncRecoveryRequired) ProtoMessage

func (*SOSyncRecoveryRequired) ProtoMessage()

func (*SOSyncRecoveryRequired) Reset

func (x *SOSyncRecoveryRequired) Reset()

func (*SOSyncRecoveryRequired) SizeVT

func (m *SOSyncRecoveryRequired) SizeVT() (n int)

func (*SOSyncRecoveryRequired) String

func (x *SOSyncRecoveryRequired) String() string

func (*SOSyncRecoveryRequired) UnmarshalJSON

func (x *SOSyncRecoveryRequired) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncRecoveryRequired from JSON.

func (*SOSyncRecoveryRequired) UnmarshalProtoJSON

func (x *SOSyncRecoveryRequired) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncRecoveryRequired message from JSON.

func (*SOSyncRecoveryRequired) UnmarshalVT

func (m *SOSyncRecoveryRequired) UnmarshalVT(dAtA []byte) error

type SOSyncSnapshot

type SOSyncSnapshot struct {

	// SoState is the full SOState proto bytes (MarshalVT).
	SoState []byte `protobuf:"bytes,1,opt,name=so_state,json=soState,proto3" json:"soState,omitempty"`
	// Revision binds this snapshot to the requested, pinned advertisement.
	Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
	// BaseHash is the trusted checkpoint named by the request.
	BaseHash []byte `protobuf:"bytes,3,opt,name=base_hash,json=baseHash,proto3" json:"baseHash,omitempty"`
	// contains filtered or unexported fields
}

SOSyncSnapshot is a full SOState snapshot exchanged after mutual authentication. The receiver merges its checkpoint, key epochs and operations into the state it holds.

func (*SOSyncSnapshot) CloneMessageVT

func (m *SOSyncSnapshot) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*SOSyncSnapshot) CloneVT

func (m *SOSyncSnapshot) CloneVT() *SOSyncSnapshot

func (*SOSyncSnapshot) EqualMessageVT

func (this *SOSyncSnapshot) EqualMessageVT(thatMsg any) bool

func (*SOSyncSnapshot) EqualVT

func (this *SOSyncSnapshot) EqualVT(that *SOSyncSnapshot) bool

func (*SOSyncSnapshot) GetBaseHash

func (x *SOSyncSnapshot) GetBaseHash() []byte

func (*SOSyncSnapshot) GetRevision

func (x *SOSyncSnapshot) GetRevision() uint64

func (*SOSyncSnapshot) GetSoState

func (x *SOSyncSnapshot) GetSoState() []byte

func (*SOSyncSnapshot) MarshalJSON

func (x *SOSyncSnapshot) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SOSyncSnapshot to JSON.

func (*SOSyncSnapshot) MarshalProtoJSON

func (x *SOSyncSnapshot) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SOSyncSnapshot message to JSON.

func (*SOSyncSnapshot) MarshalProtoText

func (x *SOSyncSnapshot) MarshalProtoText() string

func (*SOSyncSnapshot) MarshalToSizedBufferVT

func (m *SOSyncSnapshot) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SOSyncSnapshot) MarshalToVT

func (m *SOSyncSnapshot) MarshalToVT(dAtA []byte) (int, error)

func (*SOSyncSnapshot) MarshalVT

func (m *SOSyncSnapshot) MarshalVT() (dAtA []byte, err error)

func (*SOSyncSnapshot) ProtoMessage

func (*SOSyncSnapshot) ProtoMessage()

func (*SOSyncSnapshot) Reset

func (x *SOSyncSnapshot) Reset()

func (*SOSyncSnapshot) SizeVT

func (m *SOSyncSnapshot) SizeVT() (n int)

func (*SOSyncSnapshot) String

func (x *SOSyncSnapshot) String() string

func (*SOSyncSnapshot) UnmarshalJSON

func (x *SOSyncSnapshot) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SOSyncSnapshot from JSON.

func (*SOSyncSnapshot) UnmarshalProtoJSON

func (x *SOSyncSnapshot) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SOSyncSnapshot message from JSON.

func (*SOSyncSnapshot) UnmarshalVT

func (m *SOSyncSnapshot) UnmarshalVT(dAtA []byte) error

type SnapshotAccessValidator added in v0.57.2

type SnapshotAccessValidator func(context.Context, *sobject.SOState) error

SnapshotAccessValidator verifies that the local object identity can decode an inbound snapshot before it replaces durable state.

Jump to

Keyboard shortcuts

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