common

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "SUCCESS",
		1: "FAIL",
	}
	Status_value = map[string]int32{
		"SUCCESS": 0,
		"FAIL":    1,
	}
)

Enum value maps for Status.

View Source
var (
	ProcessStatus_name = map[int32]string{
		0:  "WAIT",
		1:  "MAKE_LEAGUE",
		2:  "MAKE_JOIN_TX",
		3:  "MAKE_BLOCK",
		4:  "LEAGUE_BROADCASTING",
		5:  "VOTE_START",
		6:  "VOTE_COMPLETE",
		7:  "REJECT",
		8:  "SEND_BLOCK",
		9:  "SEND_BLOCK_WAIT",
		10: "REQ_FAIRNODE_SIGN",
		11: "FINALIZE",
	}
	ProcessStatus_value = map[string]int32{
		"WAIT":                0,
		"MAKE_LEAGUE":         1,
		"MAKE_JOIN_TX":        2,
		"MAKE_BLOCK":          3,
		"LEAGUE_BROADCASTING": 4,
		"VOTE_START":          5,
		"VOTE_COMPLETE":       6,
		"REJECT":              7,
		"SEND_BLOCK":          8,
		"SEND_BLOCK_WAIT":     9,
		"REQ_FAIRNODE_SIGN":   10,
		"FINALIZE":            11,
	}
)

Enum value maps for ProcessStatus.

View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FairnodeMessage

type FairnodeMessage struct {
	Msg []*SyncMessage `protobuf:"bytes,1,rep,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*FairnodeMessage) Descriptor deprecated

func (*FairnodeMessage) Descriptor() ([]byte, []int)

Deprecated: Use FairnodeMessage.ProtoReflect.Descriptor instead.

func (*FairnodeMessage) GetMsg

func (x *FairnodeMessage) GetMsg() []*SyncMessage

func (*FairnodeMessage) ProtoMessage

func (*FairnodeMessage) ProtoMessage()

func (*FairnodeMessage) ProtoReflect added in v0.7.6

func (x *FairnodeMessage) ProtoReflect() protoreflect.Message

func (*FairnodeMessage) Reset

func (x *FairnodeMessage) Reset()

func (*FairnodeMessage) String

func (x *FairnodeMessage) String() string

type HeartBeat

type HeartBeat struct {
	Enode        string `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress string `protobuf:"bytes,2,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	ChainID      string `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	NodeVersion  string `protobuf:"bytes,4,opt,name=nodeVersion,proto3" json:"nodeVersion,omitempty"`
	Head         string `protobuf:"bytes,5,opt,name=head,proto3" json:"head,omitempty"`
	Port         int64  `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	Sign         []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`
	Ip           string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartBeat) Descriptor deprecated

func (*HeartBeat) Descriptor() ([]byte, []int)

Deprecated: Use HeartBeat.ProtoReflect.Descriptor instead.

func (*HeartBeat) GetChainID

func (x *HeartBeat) GetChainID() string

func (*HeartBeat) GetEnode

func (x *HeartBeat) GetEnode() string

func (*HeartBeat) GetHead

func (x *HeartBeat) GetHead() string

func (*HeartBeat) GetIp added in v0.7.6

func (x *HeartBeat) GetIp() string

func (*HeartBeat) GetMinerAddress

func (x *HeartBeat) GetMinerAddress() string

func (*HeartBeat) GetNodeVersion

func (x *HeartBeat) GetNodeVersion() string

func (*HeartBeat) GetPort

func (x *HeartBeat) GetPort() int64

func (*HeartBeat) GetSign

func (x *HeartBeat) GetSign() []byte

func (*HeartBeat) ProtoMessage

func (*HeartBeat) ProtoMessage()

func (*HeartBeat) ProtoReflect added in v0.7.6

func (x *HeartBeat) ProtoReflect() protoreflect.Message

func (*HeartBeat) Reset

func (x *HeartBeat) Reset()

func (*HeartBeat) String

func (x *HeartBeat) String() string

type Participate

type Participate struct {
	OtprnHash    []byte `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Enode        string `protobuf:"bytes,2,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress string `protobuf:"bytes,3,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign         []byte `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*Participate) Descriptor deprecated

func (*Participate) Descriptor() ([]byte, []int)

Deprecated: Use Participate.ProtoReflect.Descriptor instead.

func (*Participate) GetEnode

func (x *Participate) GetEnode() string

func (*Participate) GetMinerAddress

func (x *Participate) GetMinerAddress() string

func (*Participate) GetOtprnHash

func (x *Participate) GetOtprnHash() []byte

func (*Participate) GetSign

func (x *Participate) GetSign() []byte

func (*Participate) ProtoMessage

func (*Participate) ProtoMessage()

func (*Participate) ProtoReflect added in v0.7.6

func (x *Participate) ProtoReflect() protoreflect.Message

func (*Participate) Reset

func (x *Participate) Reset()

func (*Participate) String

func (x *Participate) String() string

type ProcessMessage

type ProcessMessage struct {
	Code            ProcessStatus `protobuf:"varint,1,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	CurrentBlockNum []byte        `protobuf:"bytes,2,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"`
	Sign            []byte        `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessMessage) Descriptor deprecated

func (*ProcessMessage) Descriptor() ([]byte, []int)

Deprecated: Use ProcessMessage.ProtoReflect.Descriptor instead.

func (*ProcessMessage) GetCode

func (x *ProcessMessage) GetCode() ProcessStatus

func (*ProcessMessage) GetCurrentBlockNum

func (x *ProcessMessage) GetCurrentBlockNum() []byte

func (*ProcessMessage) GetSign

func (x *ProcessMessage) GetSign() []byte

func (*ProcessMessage) ProtoMessage

func (*ProcessMessage) ProtoMessage()

func (*ProcessMessage) ProtoReflect added in v0.7.6

func (x *ProcessMessage) ProtoReflect() protoreflect.Message

func (*ProcessMessage) Reset

func (x *ProcessMessage) Reset()

func (*ProcessMessage) String

func (x *ProcessMessage) String() string

type ProcessStatus

type ProcessStatus int32
const (
	ProcessStatus_WAIT                ProcessStatus = 0
	ProcessStatus_MAKE_LEAGUE         ProcessStatus = 1
	ProcessStatus_MAKE_JOIN_TX        ProcessStatus = 2
	ProcessStatus_MAKE_BLOCK          ProcessStatus = 3
	ProcessStatus_LEAGUE_BROADCASTING ProcessStatus = 4
	ProcessStatus_VOTE_START          ProcessStatus = 5
	ProcessStatus_VOTE_COMPLETE       ProcessStatus = 6
	ProcessStatus_REJECT              ProcessStatus = 7
	ProcessStatus_SEND_BLOCK          ProcessStatus = 8
	ProcessStatus_SEND_BLOCK_WAIT     ProcessStatus = 9
	ProcessStatus_REQ_FAIRNODE_SIGN   ProcessStatus = 10 // 서명 요청해, method terminate
	ProcessStatus_FINALIZE            ProcessStatus = 11
)

func (ProcessStatus) Descriptor added in v0.7.6

func (ProcessStatus) Enum added in v0.7.6

func (x ProcessStatus) Enum() *ProcessStatus

func (ProcessStatus) EnumDescriptor deprecated

func (ProcessStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProcessStatus.Descriptor instead.

func (ProcessStatus) Number added in v0.7.6

func (ProcessStatus) String

func (x ProcessStatus) String() string

func (ProcessStatus) Type added in v0.7.6

type ReqBlock

type ReqBlock struct {
	Block   []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // rlp encoded
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Sign    []byte `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

블록 요청

func (*ReqBlock) Descriptor deprecated

func (*ReqBlock) Descriptor() ([]byte, []int)

Deprecated: Use ReqBlock.ProtoReflect.Descriptor instead.

func (*ReqBlock) GetAddress

func (x *ReqBlock) GetAddress() string

func (*ReqBlock) GetBlock

func (x *ReqBlock) GetBlock() []byte

func (*ReqBlock) GetSign

func (x *ReqBlock) GetSign() []byte

func (*ReqBlock) ProtoMessage

func (*ReqBlock) ProtoMessage()

func (*ReqBlock) ProtoReflect added in v0.7.6

func (x *ReqBlock) ProtoReflect() protoreflect.Message

func (*ReqBlock) Reset

func (x *ReqBlock) Reset()

func (*ReqBlock) String

func (x *ReqBlock) String() string

type ReqConfirmSeal

type ReqConfirmSeal struct {
	OtprnHash []byte `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	BlockHash []byte `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	VoteHash  []byte `protobuf:"bytes,3,opt,name=voteHash,proto3" json:"voteHash,omitempty"`
	Address   string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Sign      []byte `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

블록 실링 확인 요청

func (*ReqConfirmSeal) Descriptor deprecated

func (*ReqConfirmSeal) Descriptor() ([]byte, []int)

Deprecated: Use ReqConfirmSeal.ProtoReflect.Descriptor instead.

func (*ReqConfirmSeal) GetAddress

func (x *ReqConfirmSeal) GetAddress() string

func (*ReqConfirmSeal) GetBlockHash

func (x *ReqConfirmSeal) GetBlockHash() []byte

func (*ReqConfirmSeal) GetOtprnHash

func (x *ReqConfirmSeal) GetOtprnHash() []byte

func (*ReqConfirmSeal) GetSign

func (x *ReqConfirmSeal) GetSign() []byte

func (*ReqConfirmSeal) GetVoteHash

func (x *ReqConfirmSeal) GetVoteHash() []byte

func (*ReqConfirmSeal) ProtoMessage

func (*ReqConfirmSeal) ProtoMessage()

func (*ReqConfirmSeal) ProtoReflect added in v0.7.6

func (x *ReqConfirmSeal) ProtoReflect() protoreflect.Message

func (*ReqConfirmSeal) Reset

func (x *ReqConfirmSeal) Reset()

func (*ReqConfirmSeal) String

func (x *ReqConfirmSeal) String() string

type ReqFairnodeSign

type ReqFairnodeSign struct {
	OtprnHash []byte `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	BlockHash []byte `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	VoteHash  []byte `protobuf:"bytes,3,opt,name=voteHash,proto3" json:"voteHash,omitempty"`
	Address   string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Sign      []byte `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

블록 서명 요청

func (*ReqFairnodeSign) Descriptor deprecated

func (*ReqFairnodeSign) Descriptor() ([]byte, []int)

Deprecated: Use ReqFairnodeSign.ProtoReflect.Descriptor instead.

func (*ReqFairnodeSign) GetAddress

func (x *ReqFairnodeSign) GetAddress() string

func (*ReqFairnodeSign) GetBlockHash

func (x *ReqFairnodeSign) GetBlockHash() []byte

func (*ReqFairnodeSign) GetOtprnHash

func (x *ReqFairnodeSign) GetOtprnHash() []byte

func (*ReqFairnodeSign) GetSign

func (x *ReqFairnodeSign) GetSign() []byte

func (*ReqFairnodeSign) GetVoteHash

func (x *ReqFairnodeSign) GetVoteHash() []byte

func (*ReqFairnodeSign) ProtoMessage

func (*ReqFairnodeSign) ProtoMessage()

func (*ReqFairnodeSign) ProtoReflect added in v0.7.6

func (x *ReqFairnodeSign) ProtoReflect() protoreflect.Message

func (*ReqFairnodeSign) Reset

func (x *ReqFairnodeSign) Reset()

func (*ReqFairnodeSign) String

func (x *ReqFairnodeSign) String() string

type ReqLeague

type ReqLeague struct {
	OtprnHash    []byte `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Enode        string `protobuf:"bytes,2,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress string `protobuf:"bytes,3,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign         []byte `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

리그 요청

func (*ReqLeague) Descriptor deprecated

func (*ReqLeague) Descriptor() ([]byte, []int)

Deprecated: Use ReqLeague.ProtoReflect.Descriptor instead.

func (*ReqLeague) GetEnode

func (x *ReqLeague) GetEnode() string

func (*ReqLeague) GetMinerAddress

func (x *ReqLeague) GetMinerAddress() string

func (*ReqLeague) GetOtprnHash

func (x *ReqLeague) GetOtprnHash() []byte

func (*ReqLeague) GetSign

func (x *ReqLeague) GetSign() []byte

func (*ReqLeague) ProtoMessage

func (*ReqLeague) ProtoMessage()

func (*ReqLeague) ProtoReflect added in v0.7.6

func (x *ReqLeague) ProtoReflect() protoreflect.Message

func (*ReqLeague) Reset

func (x *ReqLeague) Reset()

func (*ReqLeague) String

func (x *ReqLeague) String() string

type ReqOtprn

type ReqOtprn struct {
	Enode        string `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress string `protobuf:"bytes,2,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign         []byte `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

OTRPN 요청

func (*ReqOtprn) Descriptor deprecated

func (*ReqOtprn) Descriptor() ([]byte, []int)

Deprecated: Use ReqOtprn.ProtoReflect.Descriptor instead.

func (*ReqOtprn) GetEnode

func (x *ReqOtprn) GetEnode() string

func (*ReqOtprn) GetMinerAddress

func (x *ReqOtprn) GetMinerAddress() string

func (*ReqOtprn) GetSign

func (x *ReqOtprn) GetSign() []byte

func (*ReqOtprn) ProtoMessage

func (*ReqOtprn) ProtoMessage()

func (*ReqOtprn) ProtoReflect added in v0.7.6

func (x *ReqOtprn) ProtoReflect() protoreflect.Message

func (*ReqOtprn) Reset

func (x *ReqOtprn) Reset()

func (*ReqOtprn) String

func (x *ReqOtprn) String() string

type ReqVoteResult

type ReqVoteResult struct {
	OtprnHash []byte `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Sign      []byte `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

투표 결과 요청

func (*ReqVoteResult) Descriptor deprecated

func (*ReqVoteResult) Descriptor() ([]byte, []int)

Deprecated: Use ReqVoteResult.ProtoReflect.Descriptor instead.

func (*ReqVoteResult) GetAddress

func (x *ReqVoteResult) GetAddress() string

func (*ReqVoteResult) GetOtprnHash

func (x *ReqVoteResult) GetOtprnHash() []byte

func (*ReqVoteResult) GetSign

func (x *ReqVoteResult) GetSign() []byte

func (*ReqVoteResult) ProtoMessage

func (*ReqVoteResult) ProtoMessage()

func (*ReqVoteResult) ProtoReflect added in v0.7.6

func (x *ReqVoteResult) ProtoReflect() protoreflect.Message

func (*ReqVoteResult) Reset

func (x *ReqVoteResult) Reset()

func (*ReqVoteResult) String

func (x *ReqVoteResult) String() string

type ResConfirmSeal

type ResConfirmSeal struct {
	Code ProcessStatus `protobuf:"varint,1,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	Sign []byte        `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ResConfirmSeal) Descriptor deprecated

func (*ResConfirmSeal) Descriptor() ([]byte, []int)

Deprecated: Use ResConfirmSeal.ProtoReflect.Descriptor instead.

func (*ResConfirmSeal) GetCode

func (x *ResConfirmSeal) GetCode() ProcessStatus

func (*ResConfirmSeal) GetSign

func (x *ResConfirmSeal) GetSign() []byte

func (*ResConfirmSeal) ProtoMessage

func (*ResConfirmSeal) ProtoMessage()

func (*ResConfirmSeal) ProtoReflect added in v0.7.6

func (x *ResConfirmSeal) ProtoReflect() protoreflect.Message

func (*ResConfirmSeal) Reset

func (x *ResConfirmSeal) Reset()

func (*ResConfirmSeal) String

func (x *ResConfirmSeal) String() string

type ResFairnodeSign

type ResFairnodeSign struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Sign      []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ResFairnodeSign) Descriptor deprecated

func (*ResFairnodeSign) Descriptor() ([]byte, []int)

Deprecated: Use ResFairnodeSign.ProtoReflect.Descriptor instead.

func (*ResFairnodeSign) GetSign

func (x *ResFairnodeSign) GetSign() []byte

func (*ResFairnodeSign) GetSignature

func (x *ResFairnodeSign) GetSignature() []byte

func (*ResFairnodeSign) ProtoMessage

func (*ResFairnodeSign) ProtoMessage()

func (*ResFairnodeSign) ProtoReflect added in v0.7.6

func (x *ResFairnodeSign) ProtoReflect() protoreflect.Message

func (*ResFairnodeSign) Reset

func (x *ResFairnodeSign) Reset()

func (*ResFairnodeSign) String

func (x *ResFairnodeSign) String() string

type ResLeague

type ResLeague struct {
	Result Status   `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	Enodes []string `protobuf:"bytes,2,rep,name=enodes,proto3" json:"enodes,omitempty"`
	Sign   []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ResLeague) Descriptor deprecated

func (*ResLeague) Descriptor() ([]byte, []int)

Deprecated: Use ResLeague.ProtoReflect.Descriptor instead.

func (*ResLeague) GetEnodes

func (x *ResLeague) GetEnodes() []string

func (*ResLeague) GetResult

func (x *ResLeague) GetResult() Status

func (*ResLeague) GetSign

func (x *ResLeague) GetSign() []byte

func (*ResLeague) ProtoMessage

func (*ResLeague) ProtoMessage()

func (*ResLeague) ProtoReflect added in v0.7.6

func (x *ResLeague) ProtoReflect() protoreflect.Message

func (*ResLeague) Reset

func (x *ResLeague) Reset()

func (*ResLeague) String

func (x *ResLeague) String() string

type ResOtprn

type ResOtprn struct {
	Result Status `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	Otprn  []byte `protobuf:"bytes,2,opt,name=otprn,proto3" json:"otprn,omitempty"`
	// contains filtered or unexported fields
}

func (*ResOtprn) Descriptor deprecated

func (*ResOtprn) Descriptor() ([]byte, []int)

Deprecated: Use ResOtprn.ProtoReflect.Descriptor instead.

func (*ResOtprn) GetOtprn

func (x *ResOtprn) GetOtprn() []byte

func (*ResOtprn) GetResult

func (x *ResOtprn) GetResult() Status

func (*ResOtprn) ProtoMessage

func (*ResOtprn) ProtoMessage()

func (*ResOtprn) ProtoReflect added in v0.7.6

func (x *ResOtprn) ProtoReflect() protoreflect.Message

func (*ResOtprn) Reset

func (x *ResOtprn) Reset()

func (*ResOtprn) String

func (x *ResOtprn) String() string

type ResVoteResult

type ResVoteResult struct {
	Result    Status  `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	BlockHash string  `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Voters    []*Vote `protobuf:"bytes,3,rep,name=voters,proto3" json:"voters,omitempty"`
	Sign      []byte  `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ResVoteResult) Descriptor deprecated

func (*ResVoteResult) Descriptor() ([]byte, []int)

Deprecated: Use ResVoteResult.ProtoReflect.Descriptor instead.

func (*ResVoteResult) GetBlockHash

func (x *ResVoteResult) GetBlockHash() string

func (*ResVoteResult) GetResult

func (x *ResVoteResult) GetResult() Status

func (*ResVoteResult) GetSign

func (x *ResVoteResult) GetSign() []byte

func (*ResVoteResult) GetVoters

func (x *ResVoteResult) GetVoters() []*Vote

func (*ResVoteResult) ProtoMessage

func (*ResVoteResult) ProtoMessage()

func (*ResVoteResult) ProtoReflect added in v0.7.6

func (x *ResVoteResult) ProtoReflect() protoreflect.Message

func (*ResVoteResult) Reset

func (x *ResVoteResult) Reset()

func (*ResVoteResult) String

func (x *ResVoteResult) String() string

type Status

type Status int32
const (
	Status_SUCCESS Status = 0
	Status_FAIL    Status = 1
)

func (Status) Descriptor added in v0.7.6

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum added in v0.7.6

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number added in v0.7.6

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type added in v0.7.6

func (Status) Type() protoreflect.EnumType

type SyncMessage

type SyncMessage struct {
	OtprnHash []byte        `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Code      ProcessStatus `protobuf:"varint,2,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncMessage) Descriptor deprecated

func (*SyncMessage) Descriptor() ([]byte, []int)

Deprecated: Use SyncMessage.ProtoReflect.Descriptor instead.

func (*SyncMessage) GetCode

func (x *SyncMessage) GetCode() ProcessStatus

func (*SyncMessage) GetOtprnHash

func (x *SyncMessage) GetOtprnHash() []byte

func (*SyncMessage) ProtoMessage

func (*SyncMessage) ProtoMessage()

func (*SyncMessage) ProtoReflect added in v0.7.6

func (x *SyncMessage) ProtoReflect() protoreflect.Message

func (*SyncMessage) Reset

func (x *SyncMessage) Reset()

func (*SyncMessage) String

func (x *SyncMessage) String() string

type Vote

type Vote struct {
	Header       []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // rlp encoded
	VoterAddress string `protobuf:"bytes,2,opt,name=voterAddress,proto3" json:"voterAddress,omitempty"`
	VoterSign    []byte `protobuf:"bytes,3,opt,name=voterSign,proto3" json:"voterSign,omitempty"`
	// contains filtered or unexported fields
}

투표

func (*Vote) Descriptor deprecated

func (*Vote) Descriptor() ([]byte, []int)

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetHeader

func (x *Vote) GetHeader() []byte

func (*Vote) GetVoterAddress

func (x *Vote) GetVoterAddress() string

func (*Vote) GetVoterSign

func (x *Vote) GetVoterSign() []byte

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect added in v0.7.6

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

Jump to

Keyboard shortcuts

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