dto

package
v0.0.0-...-ee95d54 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DkgIdDTO

type DkgIdDTO struct {
	DkgID string
}

type MessageDTO

type MessageDTO struct {
	ID            string
	DkgRoundID    string
	Offset        uint64
	Event         string
	Data          []byte
	Signature     []byte
	SenderAddr    string
	RecipientAddr string
}

type OperationDTO

type OperationDTO struct {
	ID         string // UUID4
	Type       string
	Payload    []byte
	ResultMsgs []storage.Message
	CreatedAt  time.Time
	DkgID      string
	To         string
	Event      fsm.Event

	ExtraData []byte
}

type OperationIdDTO

type OperationIdDTO struct {
	OperationID string
}

type ProposeSignBakedMessagesDTO

type ProposeSignBakedMessagesDTO struct {
	DkgID      []byte
	RangeStart int
	RangeEnd   int
}

type ProposeSignBatchMessagesDTO

type ProposeSignBatchMessagesDTO struct {
	DkgID []byte
	Data  map[string][]byte // use messageID as key
	Range *Range
}

type ProposeSignMessageDTO

type ProposeSignMessageDTO struct {
	DkgID []byte
	Data  []byte
}

type Range

type Range struct {
	Start int
	End   int
}

type ReInitDKGDTO

type ReInitDKGDTO struct {
	ID      string
	Payload []byte
}

type ResetStateDTO

type ResetStateDTO struct {
	NewStateDBDSN      string
	UseOffset          bool
	KafkaConsumerGroup string
	Messages           []string
}

type SignatureByIdDTO

type SignatureByIdDTO struct {
	ID    string
	DkgID string
}

type SignaturesByBatchIdDTO

type SignaturesByBatchIdDTO struct {
	BatchID string
	DkgID   string
}

type StartDkgDTO

type StartDkgDTO struct {
	Payload []byte
}

type StateOffsetDTO

type StateOffsetDTO struct {
	Offset uint64
}

Jump to

Keyboard shortcuts

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