Documentation ¶
Overview ¶
Package pb provides pb for chestnut.
Index ¶
- Variables
- func BytesToMessage(trxid string, content []byte) (proto.Message, string, error)
- func ContentToBytes(content proto.Message) ([]byte, error)
- type ActionType
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)deprecated
- func (x *Activity) GetActor() *Object
- func (x *Activity) GetAttachments() []*Object
- func (x *Activity) GetAttributedTo() []*Object
- func (x *Activity) GetAudience() *Object
- func (x *Activity) GetBcc() []*Object
- func (x *Activity) GetBto() []*Object
- func (x *Activity) GetCc() []*Object
- func (x *Activity) GetContent() string
- func (x *Activity) GetContext() *Object
- func (x *Activity) GetDuration() string
- func (x *Activity) GetEndtime() *timestamppb.Timestamp
- func (x *Activity) GetGenerator() *Object
- func (x *Activity) GetIcon() []*Object
- func (x *Activity) GetId() string
- func (x *Activity) GetImage() []*Object
- func (x *Activity) GetInReplyTo() *Object
- func (x *Activity) GetInstrument() *Object
- func (x *Activity) GetLocation() *Object
- func (x *Activity) GetMediaType() string
- func (x *Activity) GetName() string
- func (x *Activity) GetObject() *Object
- func (x *Activity) GetOrigin() *Object
- func (x *Activity) GetPerson() *Person
- func (x *Activity) GetPreview() *Object
- func (x *Activity) GetPublished() *timestamppb.Timestamp
- func (x *Activity) GetReplies() *Object
- func (x *Activity) GetResult() *Object
- func (x *Activity) GetStartTime() *timestamppb.Timestamp
- func (x *Activity) GetSummary() string
- func (x *Activity) GetTag() []*Object
- func (x *Activity) GetTarget() *Object
- func (x *Activity) GetTo() []*Object
- func (x *Activity) GetType() string
- func (x *Activity) GetUpdated() *timestamppb.Timestamp
- func (x *Activity) GetUrl() []*Link
- func (*Activity) ProtoMessage()
- func (x *Activity) ProtoReflect() protoreflect.Message
- func (x *Activity) Reset()
- func (x *Activity) String() string
- type AnnounceItem
- func (*AnnounceItem) Descriptor() ([]byte, []int)deprecated
- func (x *AnnounceItem) GetAction() ActionType
- func (x *AnnounceItem) GetAnnouncerSignature() string
- func (x *AnnounceItem) GetEncryptPubkey() string
- func (x *AnnounceItem) GetGroupId() string
- func (x *AnnounceItem) GetMemo() string
- func (x *AnnounceItem) GetOwnerPubkey() string
- func (x *AnnounceItem) GetOwnerSignature() string
- func (x *AnnounceItem) GetResult() ApproveType
- func (x *AnnounceItem) GetSignPubkey() string
- func (x *AnnounceItem) GetTimeStamp() int64
- func (x *AnnounceItem) GetType() AnnounceType
- func (*AnnounceItem) ProtoMessage()
- func (x *AnnounceItem) ProtoReflect() protoreflect.Message
- func (x *AnnounceItem) Reset()
- func (x *AnnounceItem) String() string
- type AnnounceType
- func (AnnounceType) Descriptor() protoreflect.EnumDescriptor
- func (x AnnounceType) Enum() *AnnounceType
- func (AnnounceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AnnounceType) Number() protoreflect.EnumNumber
- func (x AnnounceType) String() string
- func (AnnounceType) Type() protoreflect.EnumType
- type AnyObj
- type ApproveType
- func (ApproveType) Descriptor() protoreflect.EnumDescriptor
- func (x ApproveType) Enum() *ApproveType
- func (ApproveType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ApproveType) Number() protoreflect.EnumNumber
- func (x ApproveType) String() string
- func (ApproveType) Type() protoreflect.EnumType
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBlockId() string
- func (x *Block) GetGroupId() string
- func (x *Block) GetHash() []byte
- func (x *Block) GetPrevBlockId() string
- func (x *Block) GetPreviousHash() []byte
- func (x *Block) GetProducerPubKey() string
- func (x *Block) GetSignature() []byte
- func (x *Block) GetTimeStamp() int64
- func (x *Block) GetTrxs() []*Trx
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockDbChunk
- func (*BlockDbChunk) Descriptor() ([]byte, []int)deprecated
- func (x *BlockDbChunk) GetBlockId() string
- func (x *BlockDbChunk) GetBlockItem() *Block
- func (x *BlockDbChunk) GetHeight() int64
- func (x *BlockDbChunk) GetParentBlockId() string
- func (x *BlockDbChunk) GetSubBlockId() []string
- func (*BlockDbChunk) ProtoMessage()
- func (x *BlockDbChunk) ProtoReflect() protoreflect.Message
- func (x *BlockDbChunk) Reset()
- func (x *BlockDbChunk) String() string
- type BlockProduced
- type BlockSynced
- type DenyUserItem
- func (*DenyUserItem) Descriptor() ([]byte, []int)deprecated
- func (x *DenyUserItem) GetAction() string
- func (x *DenyUserItem) GetGroupId() string
- func (x *DenyUserItem) GetGroupOwnerPubkey() string
- func (x *DenyUserItem) GetGroupOwnerSign() string
- func (x *DenyUserItem) GetMemo() string
- func (x *DenyUserItem) GetPeerId() string
- func (x *DenyUserItem) GetTimeStamp() int64
- func (*DenyUserItem) ProtoMessage()
- func (x *DenyUserItem) ProtoReflect() protoreflect.Message
- func (x *DenyUserItem) Reset()
- func (x *DenyUserItem) String() string
- type GroupConsenseType
- func (GroupConsenseType) Descriptor() protoreflect.EnumDescriptor
- func (x GroupConsenseType) Enum() *GroupConsenseType
- func (GroupConsenseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupConsenseType) Number() protoreflect.EnumNumber
- func (x GroupConsenseType) String() string
- func (GroupConsenseType) Type() protoreflect.EnumType
- type GroupEncryptType
- func (GroupEncryptType) Descriptor() protoreflect.EnumDescriptor
- func (x GroupEncryptType) Enum() *GroupEncryptType
- func (GroupEncryptType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupEncryptType) Number() protoreflect.EnumNumber
- func (x GroupEncryptType) String() string
- func (GroupEncryptType) Type() protoreflect.EnumType
- type GroupItem
- func (*GroupItem) Descriptor() ([]byte, []int)deprecated
- func (x *GroupItem) GetAppKey() string
- func (x *GroupItem) GetCipherKey() string
- func (x *GroupItem) GetConsenseType() GroupConsenseType
- func (x *GroupItem) GetEncryptType() GroupEncryptType
- func (x *GroupItem) GetGenesisBlock() *Block
- func (x *GroupItem) GetGroupId() string
- func (x *GroupItem) GetGroupName() string
- func (x *GroupItem) GetHighestBlockId() string
- func (x *GroupItem) GetHighestHeight() int64
- func (x *GroupItem) GetLastUpdate() int64
- func (x *GroupItem) GetOwnerPubKey() string
- func (x *GroupItem) GetUserEncryptPubkey() string
- func (x *GroupItem) GetUserSignPubkey() string
- func (*GroupItem) ProtoMessage()
- func (x *GroupItem) ProtoReflect() protoreflect.Message
- func (x *GroupItem) Reset()
- func (x *GroupItem) String() string
- type GroupItemV0
- func (*GroupItemV0) Descriptor() ([]byte, []int)deprecated
- func (x *GroupItemV0) GetAppKey() string
- func (x *GroupItemV0) GetCipherKey() string
- func (x *GroupItemV0) GetConsenseType() GroupConsenseType
- func (x *GroupItemV0) GetEncryptType() GroupEncryptType
- func (x *GroupItemV0) GetGenesisBlock() *Block
- func (x *GroupItemV0) GetGroupId() string
- func (x *GroupItemV0) GetGroupName() string
- func (x *GroupItemV0) GetHighestBlockId() string
- func (x *GroupItemV0) GetHighestHeight() int64
- func (x *GroupItemV0) GetLastUpdate() int64
- func (x *GroupItemV0) GetOwnerPubKey() string
- func (x *GroupItemV0) GetUserEncryptPubkey() string
- func (x *GroupItemV0) GetUserRole() RoleV0
- func (x *GroupItemV0) GetUserSignPubkey() string
- func (*GroupItemV0) ProtoMessage()
- func (x *GroupItemV0) ProtoReflect() protoreflect.Message
- func (x *GroupItemV0) Reset()
- func (x *GroupItemV0) String() string
- type GroupSeed
- func (*GroupSeed) Descriptor() ([]byte, []int)deprecated
- func (x *GroupSeed) GetAppKey() string
- func (x *GroupSeed) GetCipherKey() string
- func (x *GroupSeed) GetConsensusType() string
- func (x *GroupSeed) GetEncryptionType() string
- func (x *GroupSeed) GetGenesisBlock() *Block
- func (x *GroupSeed) GetGroupId() string
- func (x *GroupSeed) GetGroupName() string
- func (x *GroupSeed) GetOwnerPubkey() string
- func (x *GroupSeed) GetSignature() string
- func (*GroupSeed) ProtoMessage()
- func (x *GroupSeed) ProtoReflect() protoreflect.Message
- func (x *GroupSeed) Reset()
- func (x *GroupSeed) String() string
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetContent() []byte
- func (x *Image) GetId() string
- func (x *Image) GetMediaType() string
- func (x *Image) GetName() string
- func (x *Image) GetUrl() string
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetHeight() uint32
- func (x *Link) GetHref() string
- func (x *Link) GetHreflang() string
- func (x *Link) GetMediaType() string
- func (x *Link) GetName() string
- func (x *Link) GetPreview() *Object
- func (x *Link) GetRel() []string
- func (x *Link) GetWidth() uint32
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type Object
- func (*Object) Descriptor() ([]byte, []int)deprecated
- func (x *Object) GetAttachments() []*Object
- func (x *Object) GetAttributedTo() []*Object
- func (x *Object) GetAudience() *Object
- func (x *Object) GetBcc() []*Object
- func (x *Object) GetBto() []*Object
- func (x *Object) GetCc() []*Object
- func (x *Object) GetContent() string
- func (x *Object) GetContext() *Object
- func (x *Object) GetDuration() string
- func (x *Object) GetEndtime() *timestamppb.Timestamp
- func (x *Object) GetGenerator() *Object
- func (x *Object) GetIcon() []*Object
- func (x *Object) GetId() string
- func (x *Object) GetImage() []*Image
- func (x *Object) GetInreplyto() *Reply
- func (x *Object) GetLocation() *Object
- func (x *Object) GetMediaType() string
- func (x *Object) GetName() string
- func (x *Object) GetPreview() *Object
- func (x *Object) GetPublished() *timestamppb.Timestamp
- func (x *Object) GetReplies() *Object
- func (x *Object) GetStartTime() *timestamppb.Timestamp
- func (x *Object) GetSummary() string
- func (x *Object) GetTag() []*Object
- func (x *Object) GetTo() []*Object
- func (x *Object) GetType() string
- func (x *Object) GetUpdated() *timestamppb.Timestamp
- func (x *Object) GetUrl() []*Link
- func (*Object) ProtoMessage()
- func (x *Object) ProtoReflect() protoreflect.Message
- func (x *Object) Reset()
- func (x *Object) String() string
- type PSPing
- func (*PSPing) Descriptor() ([]byte, []int)deprecated
- func (x *PSPing) GetIsResp() bool
- func (x *PSPing) GetPayload() []byte
- func (x *PSPing) GetSeqnum() int32
- func (x *PSPing) GetTimeStamp() int64
- func (*PSPing) ProtoMessage()
- func (x *PSPing) ProtoReflect() protoreflect.Message
- func (x *PSPing) Reset()
- func (x *PSPing) String() string
- type Package
- type PackageType
- func (PackageType) Descriptor() protoreflect.EnumDescriptor
- func (x PackageType) Enum() *PackageType
- func (PackageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PackageType) Number() protoreflect.EnumNumber
- func (x PackageType) String() string
- func (PackageType) Type() protoreflect.EnumType
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)deprecated
- func (x *Payment) GetId() string
- func (x *Payment) GetName() string
- func (x *Payment) GetType() string
- func (*Payment) ProtoMessage()
- func (x *Payment) ProtoReflect() protoreflect.Message
- func (x *Payment) Reset()
- func (x *Payment) String() string
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetId() string
- func (x *Person) GetImage() *Image
- func (x *Person) GetName() string
- func (x *Person) GetWallet() []*Payment
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type PostItem
- func (*PostItem) Descriptor() ([]byte, []int)deprecated
- func (x *PostItem) GetContent() []byte
- func (x *PostItem) GetPublisherPubkey() string
- func (x *PostItem) GetTimeStamp() int64
- func (x *PostItem) GetTrxId() string
- func (*PostItem) ProtoMessage()
- func (x *PostItem) ProtoReflect() protoreflect.Message
- func (x *PostItem) Reset()
- func (x *PostItem) String() string
- type ProducerItem
- func (*ProducerItem) Descriptor() ([]byte, []int)deprecated
- func (x *ProducerItem) GetAction() ActionType
- func (x *ProducerItem) GetBlockProduced() int64
- func (x *ProducerItem) GetGroupId() string
- func (x *ProducerItem) GetGroupOwnerPubkey() string
- func (x *ProducerItem) GetGroupOwnerSign() string
- func (x *ProducerItem) GetMemo() string
- func (x *ProducerItem) GetProducerPubkey() string
- func (x *ProducerItem) GetTimeStamp() int64
- func (*ProducerItem) ProtoMessage()
- func (x *ProducerItem) ProtoReflect() protoreflect.Message
- func (x *ProducerItem) Reset()
- func (x *ProducerItem) String() string
- type Reply
- type ReqBlkResult
- func (ReqBlkResult) Descriptor() protoreflect.EnumDescriptor
- func (x ReqBlkResult) Enum() *ReqBlkResult
- func (ReqBlkResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReqBlkResult) Number() protoreflect.EnumNumber
- func (x ReqBlkResult) String() string
- func (ReqBlkResult) Type() protoreflect.EnumType
- type ReqBlock
- func (*ReqBlock) Descriptor() ([]byte, []int)deprecated
- func (x *ReqBlock) GetBlockId() string
- func (x *ReqBlock) GetGroupId() string
- func (x *ReqBlock) GetUserId() string
- func (*ReqBlock) ProtoMessage()
- func (x *ReqBlock) ProtoReflect() protoreflect.Message
- func (x *ReqBlock) Reset()
- func (x *ReqBlock) String() string
- type ReqBlockResp
- func (*ReqBlockResp) Descriptor() ([]byte, []int)deprecated
- func (x *ReqBlockResp) GetBlock() []byte
- func (x *ReqBlockResp) GetBlockId() string
- func (x *ReqBlockResp) GetGroupId() string
- func (x *ReqBlockResp) GetProviderPubkey() string
- func (x *ReqBlockResp) GetRequesterPubkey() string
- func (x *ReqBlockResp) GetResult() ReqBlkResult
- func (*ReqBlockResp) ProtoMessage()
- func (x *ReqBlockResp) ProtoReflect() protoreflect.Message
- func (x *ReqBlockResp) Reset()
- func (x *ReqBlockResp) String() string
- type RoleV0
- type SchemaItem
- func (*SchemaItem) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaItem) GetAction() ActionType
- func (x *SchemaItem) GetGroupId() string
- func (x *SchemaItem) GetGroupOwnerPubkey() string
- func (x *SchemaItem) GetGroupOwnerSign() string
- func (x *SchemaItem) GetRule() string
- func (x *SchemaItem) GetTimeStamp() int64
- func (x *SchemaItem) GetType() string
- func (*SchemaItem) ProtoMessage()
- func (x *SchemaItem) ProtoReflect() protoreflect.Message
- func (x *SchemaItem) Reset()
- func (x *SchemaItem) String() string
- type Trx
- func (*Trx) Descriptor() ([]byte, []int)deprecated
- func (x *Trx) GetData() []byte
- func (x *Trx) GetExpired() int64
- func (x *Trx) GetGroupId() string
- func (x *Trx) GetNonce() int64
- func (x *Trx) GetResendCount() int64
- func (x *Trx) GetSenderPubkey() string
- func (x *Trx) GetSenderSign() []byte
- func (x *Trx) GetTimeStamp() int64
- func (x *Trx) GetTrxId() string
- func (x *Trx) GetType() TrxType
- func (x *Trx) GetVersion() string
- func (*Trx) ProtoMessage()
- func (x *Trx) ProtoReflect() protoreflect.Message
- func (x *Trx) Reset()
- func (x *Trx) String() string
- type TrxType
Constants ¶
This section is empty.
Variables ¶
var ( PackageType_name = map[int32]string{ 0: "TRX", 1: "BLOCK", } PackageType_value = map[string]int32{ "TRX": 0, "BLOCK": 1, } )
Enum value maps for PackageType.
var ( TrxType_name = map[int32]string{ 0: "POST", 1: "AUTH", 2: "SCHEMA", 3: "PRODUCER", 4: "ANNOUNCE", 5: "REQ_BLOCK_FORWARD", 6: "REQ_BLOCK_BACKWARD", 7: "REQ_BLOCK_RESP", 8: "BLOCK_SYNCED", 9: "BLOCK_PRODUCED", } TrxType_value = map[string]int32{ "POST": 0, "AUTH": 1, "SCHEMA": 2, "PRODUCER": 3, "ANNOUNCE": 4, "REQ_BLOCK_FORWARD": 5, "REQ_BLOCK_BACKWARD": 6, "REQ_BLOCK_RESP": 7, "BLOCK_SYNCED": 8, "BLOCK_PRODUCED": 9, } )
Enum value maps for TrxType.
var ( AnnounceType_name = map[int32]string{ 0: "AS_USER", 1: "AS_PRODUCER", } AnnounceType_value = map[string]int32{ "AS_USER": 0, "AS_PRODUCER": 1, } )
Enum value maps for AnnounceType.
var ( ApproveType_name = map[int32]string{ 0: "ANNOUNCED", 1: "APPROVED", 2: "REJECTED", } ApproveType_value = map[string]int32{ "ANNOUNCED": 0, "APPROVED": 1, "REJECTED": 2, } )
Enum value maps for ApproveType.
var ( ActionType_name = map[int32]string{ 0: "ADD", 1: "REMOVE", } ActionType_value = map[string]int32{ "ADD": 0, "REMOVE": 1, } )
Enum value maps for ActionType.
var ( ReqBlkResult_name = map[int32]string{ 0: "BLOCK_IN_TRX", 1: "BLOCK_NOT_FOUND", } ReqBlkResult_value = map[string]int32{ "BLOCK_IN_TRX": 0, "BLOCK_NOT_FOUND": 1, } )
Enum value maps for ReqBlkResult.
var ( GroupEncryptType_name = map[int32]string{ 0: "PUBLIC", 1: "PRIVATE", } GroupEncryptType_value = map[string]int32{ "PUBLIC": 0, "PRIVATE": 1, } )
Enum value maps for GroupEncryptType.
var ( GroupConsenseType_name = map[int32]string{ 0: "POA", 1: "POS", } GroupConsenseType_value = map[string]int32{ "POA": 0, "POS": 1, } )
Enum value maps for GroupConsenseType.
var ( RoleV0_name = map[int32]string{ 0: "GROUP_PRODUCER", 1: "GROUP_USER", } RoleV0_value = map[string]int32{ "GROUP_PRODUCER": 0, "GROUP_USER": 1, } )
Enum value maps for RoleV0.
var File_activity_stream_proto protoreflect.FileDescriptor
var File_chain_proto protoreflect.FileDescriptor
Functions ¶
func BytesToMessage ¶
Types ¶
type ActionType ¶
type ActionType int32
const ( ActionType_ADD ActionType = 0 ActionType_REMOVE ActionType = 1 )
func (ActionType) Descriptor ¶
func (ActionType) Descriptor() protoreflect.EnumDescriptor
func (ActionType) Enum ¶
func (x ActionType) Enum() *ActionType
func (ActionType) EnumDescriptor
deprecated
func (ActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionType.Descriptor instead.
func (ActionType) Number ¶
func (x ActionType) Number() protoreflect.EnumNumber
func (ActionType) String ¶
func (x ActionType) String() string
func (ActionType) Type ¶
func (ActionType) Type() protoreflect.EnumType
type Activity ¶
type Activity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Attachments []*Object `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"` AttributedTo []*Object `protobuf:"bytes,4,rep,name=attributedTo,proto3" json:"attributedTo,omitempty"` Audience *Object `protobuf:"bytes,5,opt,name=audience,proto3" json:"audience,omitempty"` Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` Context *Object `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"` Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` Endtime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=endtime,proto3" json:"endtime,omitempty"` Generator *Object `protobuf:"bytes,10,opt,name=generator,proto3" json:"generator,omitempty"` Icon []*Object `protobuf:"bytes,11,rep,name=icon,proto3" json:"icon,omitempty"` Image []*Object `protobuf:"bytes,12,rep,name=image,proto3" json:"image,omitempty"` InReplyTo *Object `protobuf:"bytes,13,opt,name=inReplyTo,proto3" json:"inReplyTo,omitempty"` Location *Object `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` Preview *Object `protobuf:"bytes,15,opt,name=preview,proto3" json:"preview,omitempty"` Published *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=published,proto3" json:"published,omitempty"` //Collection replies = 16 Replies *Object `protobuf:"bytes,17,opt,name=replies,proto3" json:"replies,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startTime,proto3" json:"startTime,omitempty"` Summary string `protobuf:"bytes,19,opt,name=summary,proto3" json:"summary,omitempty"` Tag []*Object `protobuf:"bytes,20,rep,name=tag,proto3" json:"tag,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated,proto3" json:"updated,omitempty"` Url []*Link `protobuf:"bytes,22,rep,name=url,proto3" json:"url,omitempty"` To []*Object `protobuf:"bytes,23,rep,name=to,proto3" json:"to,omitempty"` Bto []*Object `protobuf:"bytes,24,rep,name=bto,proto3" json:"bto,omitempty"` Cc []*Object `protobuf:"bytes,25,rep,name=cc,proto3" json:"cc,omitempty"` Bcc []*Object `protobuf:"bytes,26,rep,name=bcc,proto3" json:"bcc,omitempty"` MediaType string `protobuf:"bytes,27,opt,name=mediaType,proto3" json:"mediaType,omitempty"` Duration string `protobuf:"bytes,28,opt,name=duration,proto3" json:"duration,omitempty"` Actor *Object `protobuf:"bytes,29,opt,name=actor,proto3" json:"actor,omitempty"` Object *Object `protobuf:"bytes,30,opt,name=object,proto3" json:"object,omitempty"` Target *Object `protobuf:"bytes,31,opt,name=target,proto3" json:"target,omitempty"` Result *Object `protobuf:"bytes,32,opt,name=result,proto3" json:"result,omitempty"` Origin *Object `protobuf:"bytes,33,opt,name=origin,proto3" json:"origin,omitempty"` Instrument *Object `protobuf:"bytes,34,opt,name=instrument,proto3" json:"instrument,omitempty"` Person *Person `protobuf:"bytes,35,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*Activity) Descriptor
deprecated
func (*Activity) GetAttachments ¶
func (*Activity) GetAttributedTo ¶
func (*Activity) GetAudience ¶
func (*Activity) GetContent ¶
func (*Activity) GetContext ¶
func (*Activity) GetDuration ¶
func (*Activity) GetEndtime ¶
func (x *Activity) GetEndtime() *timestamppb.Timestamp
func (*Activity) GetGenerator ¶
func (*Activity) GetInReplyTo ¶
func (*Activity) GetInstrument ¶
func (*Activity) GetLocation ¶
func (*Activity) GetMediaType ¶
func (*Activity) GetPreview ¶
func (*Activity) GetPublished ¶
func (x *Activity) GetPublished() *timestamppb.Timestamp
func (*Activity) GetReplies ¶
func (*Activity) GetStartTime ¶
func (x *Activity) GetStartTime() *timestamppb.Timestamp
func (*Activity) GetSummary ¶
func (*Activity) GetUpdated ¶
func (x *Activity) GetUpdated() *timestamppb.Timestamp
func (*Activity) ProtoMessage ¶
func (*Activity) ProtoMessage()
func (*Activity) ProtoReflect ¶
func (x *Activity) ProtoReflect() protoreflect.Message
type AnnounceItem ¶
type AnnounceItem struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` SignPubkey string `protobuf:"bytes,2,opt,name=SignPubkey,proto3" json:"SignPubkey,omitempty"` EncryptPubkey string `protobuf:"bytes,3,opt,name=EncryptPubkey,proto3" json:"EncryptPubkey,omitempty"` AnnouncerSignature string `protobuf:"bytes,4,opt,name=AnnouncerSignature,proto3" json:"AnnouncerSignature,omitempty"` Type AnnounceType `protobuf:"varint,5,opt,name=Type,proto3,enum=chestnut.pb.AnnounceType" json:"Type,omitempty"` OwnerPubkey string `protobuf:"bytes,6,opt,name=OwnerPubkey,proto3" json:"OwnerPubkey,omitempty"` OwnerSignature string `protobuf:"bytes,7,opt,name=OwnerSignature,proto3" json:"OwnerSignature,omitempty"` Result ApproveType `protobuf:"varint,8,opt,name=Result,proto3,enum=chestnut.pb.ApproveType" json:"Result,omitempty"` TimeStamp int64 `protobuf:"varint,9,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Action ActionType `protobuf:"varint,10,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"` Memo string `protobuf:"bytes,11,opt,name=Memo,proto3" json:"Memo,omitempty"` // contains filtered or unexported fields }
func (*AnnounceItem) Descriptor
deprecated
func (*AnnounceItem) Descriptor() ([]byte, []int)
Deprecated: Use AnnounceItem.ProtoReflect.Descriptor instead.
func (*AnnounceItem) GetAction ¶
func (x *AnnounceItem) GetAction() ActionType
func (*AnnounceItem) GetAnnouncerSignature ¶
func (x *AnnounceItem) GetAnnouncerSignature() string
func (*AnnounceItem) GetEncryptPubkey ¶
func (x *AnnounceItem) GetEncryptPubkey() string
func (*AnnounceItem) GetGroupId ¶
func (x *AnnounceItem) GetGroupId() string
func (*AnnounceItem) GetMemo ¶
func (x *AnnounceItem) GetMemo() string
func (*AnnounceItem) GetOwnerPubkey ¶
func (x *AnnounceItem) GetOwnerPubkey() string
func (*AnnounceItem) GetOwnerSignature ¶
func (x *AnnounceItem) GetOwnerSignature() string
func (*AnnounceItem) GetResult ¶
func (x *AnnounceItem) GetResult() ApproveType
func (*AnnounceItem) GetSignPubkey ¶
func (x *AnnounceItem) GetSignPubkey() string
func (*AnnounceItem) GetTimeStamp ¶
func (x *AnnounceItem) GetTimeStamp() int64
func (*AnnounceItem) GetType ¶
func (x *AnnounceItem) GetType() AnnounceType
func (*AnnounceItem) ProtoMessage ¶
func (*AnnounceItem) ProtoMessage()
func (*AnnounceItem) ProtoReflect ¶
func (x *AnnounceItem) ProtoReflect() protoreflect.Message
func (*AnnounceItem) Reset ¶
func (x *AnnounceItem) Reset()
func (*AnnounceItem) String ¶
func (x *AnnounceItem) String() string
type AnnounceType ¶
type AnnounceType int32
const ( AnnounceType_AS_USER AnnounceType = 0 AnnounceType_AS_PRODUCER AnnounceType = 1 )
func (AnnounceType) Descriptor ¶
func (AnnounceType) Descriptor() protoreflect.EnumDescriptor
func (AnnounceType) Enum ¶
func (x AnnounceType) Enum() *AnnounceType
func (AnnounceType) EnumDescriptor
deprecated
func (AnnounceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnounceType.Descriptor instead.
func (AnnounceType) Number ¶
func (x AnnounceType) Number() protoreflect.EnumNumber
func (AnnounceType) String ¶
func (x AnnounceType) String() string
func (AnnounceType) Type ¶
func (AnnounceType) Type() protoreflect.EnumType
type AnyObj ¶
type AnyObj struct { Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3" json:"any,omitempty"` // contains filtered or unexported fields }
func (*AnyObj) Descriptor
deprecated
func (*AnyObj) ProtoMessage ¶
func (*AnyObj) ProtoMessage()
func (*AnyObj) ProtoReflect ¶
func (x *AnyObj) ProtoReflect() protoreflect.Message
type ApproveType ¶
type ApproveType int32
const ( ApproveType_ANNOUNCED ApproveType = 0 ApproveType_APPROVED ApproveType = 1 ApproveType_REJECTED ApproveType = 2 )
func (ApproveType) Descriptor ¶
func (ApproveType) Descriptor() protoreflect.EnumDescriptor
func (ApproveType) Enum ¶
func (x ApproveType) Enum() *ApproveType
func (ApproveType) EnumDescriptor
deprecated
func (ApproveType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApproveType.Descriptor instead.
func (ApproveType) Number ¶
func (x ApproveType) Number() protoreflect.EnumNumber
func (ApproveType) String ¶
func (x ApproveType) String() string
func (ApproveType) Type ¶
func (ApproveType) Type() protoreflect.EnumType
type Block ¶
type Block struct { BlockId string `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"` PrevBlockId string `protobuf:"bytes,3,opt,name=PrevBlockId,proto3" json:"PrevBlockId,omitempty"` PreviousHash []byte `protobuf:"bytes,4,opt,name=PreviousHash,proto3" json:"PreviousHash,omitempty"` Trxs []*Trx `protobuf:"bytes,5,rep,name=Trxs,proto3" json:"Trxs,omitempty"` ProducerPubKey string `protobuf:"bytes,6,opt,name=ProducerPubKey,proto3" json:"ProducerPubKey,omitempty"` Hash []byte `protobuf:"bytes,7,opt,name=Hash,proto3" json:"Hash,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=Signature,proto3" json:"Signature,omitempty"` TimeStamp int64 `protobuf:"varint,9,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetBlockId ¶
func (*Block) GetGroupId ¶
func (*Block) GetPrevBlockId ¶
func (*Block) GetPreviousHash ¶
func (*Block) GetProducerPubKey ¶
func (*Block) GetSignature ¶
func (*Block) GetTimeStamp ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockDbChunk ¶
type BlockDbChunk struct { BlockId string `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"` BlockItem *Block `protobuf:"bytes,2,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"` ParentBlockId string `protobuf:"bytes,3,opt,name=ParentBlockId,proto3" json:"ParentBlockId,omitempty"` SubBlockId []string `protobuf:"bytes,4,rep,name=SubBlockId,proto3" json:"SubBlockId,omitempty"` Height int64 `protobuf:"varint,6,opt,name=Height,proto3" json:"Height,omitempty"` // contains filtered or unexported fields }
func (*BlockDbChunk) Descriptor
deprecated
func (*BlockDbChunk) Descriptor() ([]byte, []int)
Deprecated: Use BlockDbChunk.ProtoReflect.Descriptor instead.
func (*BlockDbChunk) GetBlockId ¶
func (x *BlockDbChunk) GetBlockId() string
func (*BlockDbChunk) GetBlockItem ¶
func (x *BlockDbChunk) GetBlockItem() *Block
func (*BlockDbChunk) GetHeight ¶
func (x *BlockDbChunk) GetHeight() int64
func (*BlockDbChunk) GetParentBlockId ¶
func (x *BlockDbChunk) GetParentBlockId() string
func (*BlockDbChunk) GetSubBlockId ¶
func (x *BlockDbChunk) GetSubBlockId() []string
func (*BlockDbChunk) ProtoMessage ¶
func (*BlockDbChunk) ProtoMessage()
func (*BlockDbChunk) ProtoReflect ¶
func (x *BlockDbChunk) ProtoReflect() protoreflect.Message
func (*BlockDbChunk) Reset ¶
func (x *BlockDbChunk) Reset()
func (*BlockDbChunk) String ¶
func (x *BlockDbChunk) String() string
type BlockProduced ¶
type BlockProduced struct { BlockItem *Block `protobuf:"bytes,1,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"` // contains filtered or unexported fields }
func (*BlockProduced) Descriptor
deprecated
func (*BlockProduced) Descriptor() ([]byte, []int)
Deprecated: Use BlockProduced.ProtoReflect.Descriptor instead.
func (*BlockProduced) GetBlockItem ¶
func (x *BlockProduced) GetBlockItem() *Block
func (*BlockProduced) ProtoMessage ¶
func (*BlockProduced) ProtoMessage()
func (*BlockProduced) ProtoReflect ¶
func (x *BlockProduced) ProtoReflect() protoreflect.Message
func (*BlockProduced) Reset ¶
func (x *BlockProduced) Reset()
func (*BlockProduced) String ¶
func (x *BlockProduced) String() string
type BlockSynced ¶
type BlockSynced struct { BlockItem *Block `protobuf:"bytes,1,opt,name=BlockItem,proto3" json:"BlockItem,omitempty"` // contains filtered or unexported fields }
func (*BlockSynced) Descriptor
deprecated
func (*BlockSynced) Descriptor() ([]byte, []int)
Deprecated: Use BlockSynced.ProtoReflect.Descriptor instead.
func (*BlockSynced) GetBlockItem ¶
func (x *BlockSynced) GetBlockItem() *Block
func (*BlockSynced) ProtoMessage ¶
func (*BlockSynced) ProtoMessage()
func (*BlockSynced) ProtoReflect ¶
func (x *BlockSynced) ProtoReflect() protoreflect.Message
func (*BlockSynced) Reset ¶
func (x *BlockSynced) Reset()
func (*BlockSynced) String ¶
func (x *BlockSynced) String() string
type DenyUserItem ¶
type DenyUserItem struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` PeerId string `protobuf:"bytes,2,opt,name=PeerId,proto3" json:"PeerId,omitempty"` GroupOwnerPubkey string `protobuf:"bytes,3,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"` GroupOwnerSign string `protobuf:"bytes,4,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"` TimeStamp int64 `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Action string `protobuf:"bytes,6,opt,name=Action,proto3" json:"Action,omitempty"` Memo string `protobuf:"bytes,7,opt,name=Memo,proto3" json:"Memo,omitempty"` // contains filtered or unexported fields }
func (*DenyUserItem) Descriptor
deprecated
func (*DenyUserItem) Descriptor() ([]byte, []int)
Deprecated: Use DenyUserItem.ProtoReflect.Descriptor instead.
func (*DenyUserItem) GetAction ¶
func (x *DenyUserItem) GetAction() string
func (*DenyUserItem) GetGroupId ¶
func (x *DenyUserItem) GetGroupId() string
func (*DenyUserItem) GetGroupOwnerPubkey ¶
func (x *DenyUserItem) GetGroupOwnerPubkey() string
func (*DenyUserItem) GetGroupOwnerSign ¶
func (x *DenyUserItem) GetGroupOwnerSign() string
func (*DenyUserItem) GetMemo ¶
func (x *DenyUserItem) GetMemo() string
func (*DenyUserItem) GetPeerId ¶
func (x *DenyUserItem) GetPeerId() string
func (*DenyUserItem) GetTimeStamp ¶
func (x *DenyUserItem) GetTimeStamp() int64
func (*DenyUserItem) ProtoMessage ¶
func (*DenyUserItem) ProtoMessage()
func (*DenyUserItem) ProtoReflect ¶
func (x *DenyUserItem) ProtoReflect() protoreflect.Message
func (*DenyUserItem) Reset ¶
func (x *DenyUserItem) Reset()
func (*DenyUserItem) String ¶
func (x *DenyUserItem) String() string
type GroupConsenseType ¶
type GroupConsenseType int32
const ( GroupConsenseType_POA GroupConsenseType = 0 //proof of authen GroupConsenseType_POS GroupConsenseType = 1 )
func (GroupConsenseType) Descriptor ¶
func (GroupConsenseType) Descriptor() protoreflect.EnumDescriptor
func (GroupConsenseType) Enum ¶
func (x GroupConsenseType) Enum() *GroupConsenseType
func (GroupConsenseType) EnumDescriptor
deprecated
func (GroupConsenseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupConsenseType.Descriptor instead.
func (GroupConsenseType) Number ¶
func (x GroupConsenseType) Number() protoreflect.EnumNumber
func (GroupConsenseType) String ¶
func (x GroupConsenseType) String() string
func (GroupConsenseType) Type ¶
func (GroupConsenseType) Type() protoreflect.EnumType
type GroupEncryptType ¶
type GroupEncryptType int32
const ( GroupEncryptType_PUBLIC GroupEncryptType = 0 //public group GroupEncryptType_PRIVATE GroupEncryptType = 1 //private group )
func (GroupEncryptType) Descriptor ¶
func (GroupEncryptType) Descriptor() protoreflect.EnumDescriptor
func (GroupEncryptType) Enum ¶
func (x GroupEncryptType) Enum() *GroupEncryptType
func (GroupEncryptType) EnumDescriptor
deprecated
func (GroupEncryptType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupEncryptType.Descriptor instead.
func (GroupEncryptType) Number ¶
func (x GroupEncryptType) Number() protoreflect.EnumNumber
func (GroupEncryptType) String ¶
func (x GroupEncryptType) String() string
func (GroupEncryptType) Type ¶
func (GroupEncryptType) Type() protoreflect.EnumType
type GroupItem ¶
type GroupItem struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` GroupName string `protobuf:"bytes,2,opt,name=GroupName,proto3" json:"GroupName,omitempty"` OwnerPubKey string `protobuf:"bytes,3,opt,name=OwnerPubKey,proto3" json:"OwnerPubKey,omitempty"` UserSignPubkey string `protobuf:"bytes,4,opt,name=UserSignPubkey,proto3" json:"UserSignPubkey,omitempty"` UserEncryptPubkey string `protobuf:"bytes,5,opt,name=UserEncryptPubkey,proto3" json:"UserEncryptPubkey,omitempty"` LastUpdate int64 `protobuf:"varint,6,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"` HighestHeight int64 `protobuf:"varint,7,opt,name=HighestHeight,proto3" json:"HighestHeight,omitempty"` HighestBlockId string `protobuf:"bytes,8,opt,name=HighestBlockId,proto3" json:"HighestBlockId,omitempty"` GenesisBlock *Block `protobuf:"bytes,9,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"` EncryptType GroupEncryptType `protobuf:"varint,10,opt,name=EncryptType,proto3,enum=chestnut.pb.GroupEncryptType" json:"EncryptType,omitempty"` ConsenseType GroupConsenseType `protobuf:"varint,11,opt,name=ConsenseType,proto3,enum=chestnut.pb.GroupConsenseType" json:"ConsenseType,omitempty"` CipherKey string `protobuf:"bytes,12,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"` AppKey string `protobuf:"bytes,13,opt,name=AppKey,proto3" json:"AppKey,omitempty"` // contains filtered or unexported fields }
func (*GroupItem) Descriptor
deprecated
func (*GroupItem) GetCipherKey ¶
func (*GroupItem) GetConsenseType ¶
func (x *GroupItem) GetConsenseType() GroupConsenseType
func (*GroupItem) GetEncryptType ¶
func (x *GroupItem) GetEncryptType() GroupEncryptType
func (*GroupItem) GetGenesisBlock ¶
func (*GroupItem) GetGroupId ¶
func (*GroupItem) GetGroupName ¶
func (*GroupItem) GetHighestBlockId ¶
func (*GroupItem) GetHighestHeight ¶
func (*GroupItem) GetLastUpdate ¶
func (*GroupItem) GetOwnerPubKey ¶
func (*GroupItem) GetUserEncryptPubkey ¶
func (*GroupItem) GetUserSignPubkey ¶
func (*GroupItem) ProtoMessage ¶
func (*GroupItem) ProtoMessage()
func (*GroupItem) ProtoReflect ¶
func (x *GroupItem) ProtoReflect() protoreflect.Message
type GroupItemV0 ¶
type GroupItemV0 struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` GroupName string `protobuf:"bytes,2,opt,name=GroupName,proto3" json:"GroupName,omitempty"` OwnerPubKey string `protobuf:"bytes,3,opt,name=OwnerPubKey,proto3" json:"OwnerPubKey,omitempty"` UserSignPubkey string `protobuf:"bytes,4,opt,name=UserSignPubkey,proto3" json:"UserSignPubkey,omitempty"` UserEncryptPubkey string `protobuf:"bytes,5,opt,name=UserEncryptPubkey,proto3" json:"UserEncryptPubkey,omitempty"` UserRole RoleV0 `protobuf:"varint,6,opt,name=UserRole,proto3,enum=chestnut.pb.RoleV0" json:"UserRole,omitempty"` LastUpdate int64 `protobuf:"varint,7,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"` HighestHeight int64 `protobuf:"varint,8,opt,name=HighestHeight,proto3" json:"HighestHeight,omitempty"` HighestBlockId string `protobuf:"bytes,9,opt,name=HighestBlockId,proto3" json:"HighestBlockId,omitempty"` GenesisBlock *Block `protobuf:"bytes,10,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"` EncryptType GroupEncryptType `protobuf:"varint,11,opt,name=EncryptType,proto3,enum=chestnut.pb.GroupEncryptType" json:"EncryptType,omitempty"` ConsenseType GroupConsenseType `protobuf:"varint,12,opt,name=ConsenseType,proto3,enum=chestnut.pb.GroupConsenseType" json:"ConsenseType,omitempty"` CipherKey string `protobuf:"bytes,13,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"` AppKey string `protobuf:"bytes,14,opt,name=AppKey,proto3" json:"AppKey,omitempty"` // contains filtered or unexported fields }
func (*GroupItemV0) Descriptor
deprecated
func (*GroupItemV0) Descriptor() ([]byte, []int)
Deprecated: Use GroupItemV0.ProtoReflect.Descriptor instead.
func (*GroupItemV0) GetAppKey ¶
func (x *GroupItemV0) GetAppKey() string
func (*GroupItemV0) GetCipherKey ¶
func (x *GroupItemV0) GetCipherKey() string
func (*GroupItemV0) GetConsenseType ¶
func (x *GroupItemV0) GetConsenseType() GroupConsenseType
func (*GroupItemV0) GetEncryptType ¶
func (x *GroupItemV0) GetEncryptType() GroupEncryptType
func (*GroupItemV0) GetGenesisBlock ¶
func (x *GroupItemV0) GetGenesisBlock() *Block
func (*GroupItemV0) GetGroupId ¶
func (x *GroupItemV0) GetGroupId() string
func (*GroupItemV0) GetGroupName ¶
func (x *GroupItemV0) GetGroupName() string
func (*GroupItemV0) GetHighestBlockId ¶
func (x *GroupItemV0) GetHighestBlockId() string
func (*GroupItemV0) GetHighestHeight ¶
func (x *GroupItemV0) GetHighestHeight() int64
func (*GroupItemV0) GetLastUpdate ¶
func (x *GroupItemV0) GetLastUpdate() int64
func (*GroupItemV0) GetOwnerPubKey ¶
func (x *GroupItemV0) GetOwnerPubKey() string
func (*GroupItemV0) GetUserEncryptPubkey ¶
func (x *GroupItemV0) GetUserEncryptPubkey() string
func (*GroupItemV0) GetUserRole ¶
func (x *GroupItemV0) GetUserRole() RoleV0
func (*GroupItemV0) GetUserSignPubkey ¶
func (x *GroupItemV0) GetUserSignPubkey() string
func (*GroupItemV0) ProtoMessage ¶
func (*GroupItemV0) ProtoMessage()
func (*GroupItemV0) ProtoReflect ¶
func (x *GroupItemV0) ProtoReflect() protoreflect.Message
func (*GroupItemV0) Reset ¶
func (x *GroupItemV0) Reset()
func (*GroupItemV0) String ¶
func (x *GroupItemV0) String() string
type GroupSeed ¶
type GroupSeed struct { GenesisBlock *Block `protobuf:"bytes,1,opt,name=GenesisBlock,proto3" json:"GenesisBlock,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"` GroupName string `protobuf:"bytes,3,opt,name=GroupName,proto3" json:"GroupName,omitempty"` OwnerPubkey string `protobuf:"bytes,4,opt,name=OwnerPubkey,proto3" json:"OwnerPubkey,omitempty"` ConsensusType string `protobuf:"bytes,5,opt,name=ConsensusType,proto3" json:"ConsensusType,omitempty"` EncryptionType string `protobuf:"bytes,6,opt,name=EncryptionType,proto3" json:"EncryptionType,omitempty"` CipherKey string `protobuf:"bytes,7,opt,name=CipherKey,proto3" json:"CipherKey,omitempty"` AppKey string `protobuf:"bytes,8,opt,name=AppKey,proto3" json:"AppKey,omitempty"` Signature string `protobuf:"bytes,9,opt,name=Signature,proto3" json:"Signature,omitempty"` // contains filtered or unexported fields }
func (*GroupSeed) Descriptor
deprecated
func (*GroupSeed) GetCipherKey ¶
func (*GroupSeed) GetConsensusType ¶
func (*GroupSeed) GetEncryptionType ¶
func (*GroupSeed) GetGenesisBlock ¶
func (*GroupSeed) GetGroupId ¶
func (*GroupSeed) GetGroupName ¶
func (*GroupSeed) GetOwnerPubkey ¶
func (*GroupSeed) GetSignature ¶
func (*GroupSeed) ProtoMessage ¶
func (*GroupSeed) ProtoMessage()
func (*GroupSeed) ProtoReflect ¶
func (x *GroupSeed) ProtoReflect() protoreflect.Message
type Image ¶
type Image struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MediaType string `protobuf:"bytes,3,opt,name=mediaType,proto3" json:"mediaType,omitempty"` Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) GetContent ¶
func (*Image) GetMediaType ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type Link ¶
type Link struct { Href string `protobuf:"bytes,1,opt,name=href,proto3" json:"href,omitempty"` Rel []string `protobuf:"bytes,2,rep,name=rel,proto3" json:"rel,omitempty"` MediaType string `protobuf:"bytes,3,opt,name=mediaType,proto3" json:"mediaType,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Hreflang string `protobuf:"bytes,5,opt,name=hreflang,proto3" json:"hreflang,omitempty"` Height uint32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` Width uint32 `protobuf:"varint,7,opt,name=width,proto3" json:"width,omitempty"` Preview *Object `protobuf:"bytes,8,opt,name=preview,proto3" json:"preview,omitempty"` // contains filtered or unexported fields }
func (*Link) Descriptor
deprecated
func (*Link) GetHreflang ¶
func (*Link) GetMediaType ¶
func (*Link) GetPreview ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
type Object ¶
type Object struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Attachments []*Object `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"` AttributedTo []*Object `protobuf:"bytes,4,rep,name=attributedTo,proto3" json:"attributedTo,omitempty"` Audience *Object `protobuf:"bytes,5,opt,name=audience,proto3" json:"audience,omitempty"` Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` Context *Object `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"` Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` Endtime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=endtime,proto3" json:"endtime,omitempty"` Generator *Object `protobuf:"bytes,10,opt,name=generator,proto3" json:"generator,omitempty"` Icon []*Object `protobuf:"bytes,11,rep,name=icon,proto3" json:"icon,omitempty"` Image []*Image `protobuf:"bytes,12,rep,name=image,proto3" json:"image,omitempty"` Inreplyto *Reply `protobuf:"bytes,13,opt,name=inreplyto,proto3" json:"inreplyto,omitempty"` Location *Object `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` Preview *Object `protobuf:"bytes,15,opt,name=preview,proto3" json:"preview,omitempty"` Published *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=published,proto3" json:"published,omitempty"` //Collection replies = 16 Replies *Object `protobuf:"bytes,17,opt,name=replies,proto3" json:"replies,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startTime,proto3" json:"startTime,omitempty"` Summary string `protobuf:"bytes,19,opt,name=summary,proto3" json:"summary,omitempty"` Tag []*Object `protobuf:"bytes,20,rep,name=tag,proto3" json:"tag,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated,proto3" json:"updated,omitempty"` Url []*Link `protobuf:"bytes,22,rep,name=url,proto3" json:"url,omitempty"` To []*Object `protobuf:"bytes,23,rep,name=to,proto3" json:"to,omitempty"` Bto []*Object `protobuf:"bytes,24,rep,name=bto,proto3" json:"bto,omitempty"` Cc []*Object `protobuf:"bytes,25,rep,name=cc,proto3" json:"cc,omitempty"` Bcc []*Object `protobuf:"bytes,26,rep,name=bcc,proto3" json:"bcc,omitempty"` MediaType string `protobuf:"bytes,27,opt,name=mediaType,proto3" json:"mediaType,omitempty"` Duration string `protobuf:"bytes,28,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*Object) Descriptor
deprecated
func (*Object) GetAttachments ¶
func (*Object) GetAttributedTo ¶
func (*Object) GetAudience ¶
func (*Object) GetContent ¶
func (*Object) GetContext ¶
func (*Object) GetDuration ¶
func (*Object) GetEndtime ¶
func (x *Object) GetEndtime() *timestamppb.Timestamp
func (*Object) GetGenerator ¶
func (*Object) GetInreplyto ¶
func (*Object) GetLocation ¶
func (*Object) GetMediaType ¶
func (*Object) GetPreview ¶
func (*Object) GetPublished ¶
func (x *Object) GetPublished() *timestamppb.Timestamp
func (*Object) GetReplies ¶
func (*Object) GetStartTime ¶
func (x *Object) GetStartTime() *timestamppb.Timestamp
func (*Object) GetSummary ¶
func (*Object) GetUpdated ¶
func (x *Object) GetUpdated() *timestamppb.Timestamp
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
type PSPing ¶
type PSPing struct { Seqnum int32 `protobuf:"varint,1,opt,name=Seqnum,proto3" json:"Seqnum,omitempty"` IsResp bool `protobuf:"varint,2,opt,name=IsResp,proto3" json:"IsResp,omitempty"` TimeStamp int64 `protobuf:"varint,3,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"` // contains filtered or unexported fields }
func (*PSPing) Descriptor
deprecated
func (*PSPing) GetPayload ¶
func (*PSPing) GetTimeStamp ¶
func (*PSPing) ProtoMessage ¶
func (*PSPing) ProtoMessage()
func (*PSPing) ProtoReflect ¶
func (x *PSPing) ProtoReflect() protoreflect.Message
type Package ¶
type Package struct { Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=chestnut.pb.PackageType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetType ¶
func (x *Package) GetType() PackageType
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type PackageType ¶
type PackageType int32
const ( PackageType_TRX PackageType = 0 PackageType_BLOCK PackageType = 1 )
func (PackageType) Descriptor ¶
func (PackageType) Descriptor() protoreflect.EnumDescriptor
func (PackageType) Enum ¶
func (x PackageType) Enum() *PackageType
func (PackageType) EnumDescriptor
deprecated
func (PackageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PackageType.Descriptor instead.
func (PackageType) Number ¶
func (x PackageType) Number() protoreflect.EnumNumber
func (PackageType) String ¶
func (x PackageType) String() string
func (PackageType) Type ¶
func (PackageType) Type() protoreflect.EnumType
type Payment ¶
type Payment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Payment) Descriptor
deprecated
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) ProtoReflect ¶
func (x *Payment) ProtoReflect() protoreflect.Message
type Person ¶
type Person struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Image *Image `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` Wallet []*Payment `protobuf:"bytes,11,rep,name=wallet,proto3" json:"wallet,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type PostItem ¶
type PostItem struct { TrxId string `protobuf:"bytes,1,opt,name=TrxId,proto3" json:"TrxId,omitempty"` PublisherPubkey string `protobuf:"bytes,2,opt,name=PublisherPubkey,proto3" json:"PublisherPubkey,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"` TimeStamp int64 `protobuf:"varint,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` // contains filtered or unexported fields }
func (*PostItem) Descriptor
deprecated
func (*PostItem) GetContent ¶
func (*PostItem) GetPublisherPubkey ¶
func (*PostItem) GetTimeStamp ¶
func (*PostItem) ProtoMessage ¶
func (*PostItem) ProtoMessage()
func (*PostItem) ProtoReflect ¶
func (x *PostItem) ProtoReflect() protoreflect.Message
type ProducerItem ¶
type ProducerItem struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` ProducerPubkey string `protobuf:"bytes,2,opt,name=ProducerPubkey,proto3" json:"ProducerPubkey,omitempty"` GroupOwnerPubkey string `protobuf:"bytes,3,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"` GroupOwnerSign string `protobuf:"bytes,4,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"` TimeStamp int64 `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Action ActionType `protobuf:"varint,6,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"` BlockProduced int64 `protobuf:"varint,7,opt,name=BlockProduced,proto3" json:"BlockProduced,omitempty"` Memo string `protobuf:"bytes,8,opt,name=Memo,proto3" json:"Memo,omitempty"` // contains filtered or unexported fields }
func (*ProducerItem) Descriptor
deprecated
func (*ProducerItem) Descriptor() ([]byte, []int)
Deprecated: Use ProducerItem.ProtoReflect.Descriptor instead.
func (*ProducerItem) GetAction ¶
func (x *ProducerItem) GetAction() ActionType
func (*ProducerItem) GetBlockProduced ¶
func (x *ProducerItem) GetBlockProduced() int64
func (*ProducerItem) GetGroupId ¶
func (x *ProducerItem) GetGroupId() string
func (*ProducerItem) GetGroupOwnerPubkey ¶
func (x *ProducerItem) GetGroupOwnerPubkey() string
func (*ProducerItem) GetGroupOwnerSign ¶
func (x *ProducerItem) GetGroupOwnerSign() string
func (*ProducerItem) GetMemo ¶
func (x *ProducerItem) GetMemo() string
func (*ProducerItem) GetProducerPubkey ¶
func (x *ProducerItem) GetProducerPubkey() string
func (*ProducerItem) GetTimeStamp ¶
func (x *ProducerItem) GetTimeStamp() int64
func (*ProducerItem) ProtoMessage ¶
func (*ProducerItem) ProtoMessage()
func (*ProducerItem) ProtoReflect ¶
func (x *ProducerItem) ProtoReflect() protoreflect.Message
func (*ProducerItem) Reset ¶
func (x *ProducerItem) Reset()
func (*ProducerItem) String ¶
func (x *ProducerItem) String() string
type Reply ¶
type Reply struct { Trxid string `protobuf:"bytes,1,opt,name=trxid,proto3" json:"trxid,omitempty"` Groupid string `protobuf:"bytes,2,opt,name=groupid,proto3" json:"groupid,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetGroupid ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type ReqBlkResult ¶
type ReqBlkResult int32
const ( ReqBlkResult_BLOCK_IN_TRX ReqBlkResult = 0 //block data in trx ReqBlkResult_BLOCK_NOT_FOUND ReqBlkResult = 1 //block not found )
func (ReqBlkResult) Descriptor ¶
func (ReqBlkResult) Descriptor() protoreflect.EnumDescriptor
func (ReqBlkResult) Enum ¶
func (x ReqBlkResult) Enum() *ReqBlkResult
func (ReqBlkResult) EnumDescriptor
deprecated
func (ReqBlkResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReqBlkResult.Descriptor instead.
func (ReqBlkResult) Number ¶
func (x ReqBlkResult) Number() protoreflect.EnumNumber
func (ReqBlkResult) String ¶
func (x ReqBlkResult) String() string
func (ReqBlkResult) Type ¶
func (ReqBlkResult) Type() protoreflect.EnumType
type ReqBlock ¶
type ReqBlock struct { BlockId string `protobuf:"bytes,1,opt,name=BlockId,proto3" json:"BlockId,omitempty"` //block id GroupId string `protobuf:"bytes,2,opt,name=GroupId,proto3" json:"GroupId,omitempty"` //group id UserId string `protobuf:"bytes,3,opt,name=UserId,proto3" json:"UserId,omitempty"` //requester // contains filtered or unexported fields }
func (*ReqBlock) Descriptor
deprecated
func (*ReqBlock) GetBlockId ¶
func (*ReqBlock) GetGroupId ¶
func (*ReqBlock) ProtoMessage ¶
func (*ReqBlock) ProtoMessage()
func (*ReqBlock) ProtoReflect ¶
func (x *ReqBlock) ProtoReflect() protoreflect.Message
type ReqBlockResp ¶
type ReqBlockResp struct { Result ReqBlkResult `protobuf:"varint,1,opt,name=Result,proto3,enum=chestnut.pb.ReqBlkResult" json:"Result,omitempty"` ProviderPubkey string `protobuf:"bytes,2,opt,name=ProviderPubkey,proto3" json:"ProviderPubkey,omitempty"` RequesterPubkey string `protobuf:"bytes,3,opt,name=RequesterPubkey,proto3" json:"RequesterPubkey,omitempty"` GroupId string `protobuf:"bytes,4,opt,name=GroupId,proto3" json:"GroupId,omitempty"` BlockId string `protobuf:"bytes,5,opt,name=BlockId,proto3" json:"BlockId,omitempty"` Block []byte `protobuf:"bytes,6,opt,name=Block,proto3" json:"Block,omitempty"` // contains filtered or unexported fields }
func (*ReqBlockResp) Descriptor
deprecated
func (*ReqBlockResp) Descriptor() ([]byte, []int)
Deprecated: Use ReqBlockResp.ProtoReflect.Descriptor instead.
func (*ReqBlockResp) GetBlock ¶
func (x *ReqBlockResp) GetBlock() []byte
func (*ReqBlockResp) GetBlockId ¶
func (x *ReqBlockResp) GetBlockId() string
func (*ReqBlockResp) GetGroupId ¶
func (x *ReqBlockResp) GetGroupId() string
func (*ReqBlockResp) GetProviderPubkey ¶
func (x *ReqBlockResp) GetProviderPubkey() string
func (*ReqBlockResp) GetRequesterPubkey ¶
func (x *ReqBlockResp) GetRequesterPubkey() string
func (*ReqBlockResp) GetResult ¶
func (x *ReqBlockResp) GetResult() ReqBlkResult
func (*ReqBlockResp) ProtoMessage ¶
func (*ReqBlockResp) ProtoMessage()
func (*ReqBlockResp) ProtoReflect ¶
func (x *ReqBlockResp) ProtoReflect() protoreflect.Message
func (*ReqBlockResp) Reset ¶
func (x *ReqBlockResp) Reset()
func (*ReqBlockResp) String ¶
func (x *ReqBlockResp) String() string
type RoleV0 ¶
type RoleV0 int32
func (RoleV0) Descriptor ¶
func (RoleV0) Descriptor() protoreflect.EnumDescriptor
func (RoleV0) EnumDescriptor
deprecated
func (RoleV0) Number ¶
func (x RoleV0) Number() protoreflect.EnumNumber
func (RoleV0) Type ¶
func (RoleV0) Type() protoreflect.EnumType
type SchemaItem ¶
type SchemaItem struct { GroupId string `protobuf:"bytes,1,opt,name=GroupId,proto3" json:"GroupId,omitempty"` GroupOwnerPubkey string `protobuf:"bytes,2,opt,name=GroupOwnerPubkey,proto3" json:"GroupOwnerPubkey,omitempty"` GroupOwnerSign string `protobuf:"bytes,3,opt,name=GroupOwnerSign,proto3" json:"GroupOwnerSign,omitempty"` Type string `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"` Rule string `protobuf:"bytes,5,opt,name=Rule,proto3" json:"Rule,omitempty"` TimeStamp int64 `protobuf:"varint,6,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Action ActionType `protobuf:"varint,7,opt,name=Action,proto3,enum=chestnut.pb.ActionType" json:"Action,omitempty"` // contains filtered or unexported fields }
func (*SchemaItem) Descriptor
deprecated
func (*SchemaItem) Descriptor() ([]byte, []int)
Deprecated: Use SchemaItem.ProtoReflect.Descriptor instead.
func (*SchemaItem) GetAction ¶
func (x *SchemaItem) GetAction() ActionType
func (*SchemaItem) GetGroupId ¶
func (x *SchemaItem) GetGroupId() string
func (*SchemaItem) GetGroupOwnerPubkey ¶
func (x *SchemaItem) GetGroupOwnerPubkey() string
func (*SchemaItem) GetGroupOwnerSign ¶
func (x *SchemaItem) GetGroupOwnerSign() string
func (*SchemaItem) GetRule ¶
func (x *SchemaItem) GetRule() string
func (*SchemaItem) GetTimeStamp ¶
func (x *SchemaItem) GetTimeStamp() int64
func (*SchemaItem) GetType ¶
func (x *SchemaItem) GetType() string
func (*SchemaItem) ProtoMessage ¶
func (*SchemaItem) ProtoMessage()
func (*SchemaItem) ProtoReflect ¶
func (x *SchemaItem) ProtoReflect() protoreflect.Message
func (*SchemaItem) Reset ¶
func (x *SchemaItem) Reset()
func (*SchemaItem) String ¶
func (x *SchemaItem) String() string
type Trx ¶
type Trx struct { TrxId string `protobuf:"bytes,1,opt,name=TrxId,proto3" json:"TrxId,omitempty"` Type TrxType `protobuf:"varint,2,opt,name=Type,proto3,enum=chestnut.pb.TrxType" json:"Type,omitempty"` GroupId string `protobuf:"bytes,3,opt,name=GroupId,proto3" json:"GroupId,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` TimeStamp int64 `protobuf:"varint,5,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Version string `protobuf:"bytes,6,opt,name=Version,proto3" json:"Version,omitempty"` Expired int64 `protobuf:"varint,7,opt,name=Expired,proto3" json:"Expired,omitempty"` ResendCount int64 `protobuf:"varint,8,opt,name=ResendCount,proto3" json:"ResendCount,omitempty"` Nonce int64 `protobuf:"varint,9,opt,name=Nonce,proto3" json:"Nonce,omitempty"` SenderPubkey string `protobuf:"bytes,10,opt,name=SenderPubkey,proto3" json:"SenderPubkey,omitempty"` SenderSign []byte `protobuf:"bytes,11,opt,name=SenderSign,proto3" json:"SenderSign,omitempty"` // contains filtered or unexported fields }
func (*Trx) Descriptor
deprecated
func (*Trx) GetExpired ¶
func (*Trx) GetGroupId ¶
func (*Trx) GetResendCount ¶
func (*Trx) GetSenderPubkey ¶
func (*Trx) GetSenderSign ¶
func (*Trx) GetTimeStamp ¶
func (*Trx) GetVersion ¶
func (*Trx) ProtoMessage ¶
func (*Trx) ProtoMessage()
func (*Trx) ProtoReflect ¶
func (x *Trx) ProtoReflect() protoreflect.Message
type TrxType ¶
type TrxType int32
const ( TrxType_POST TrxType = 0 // post to group TrxType_AUTH TrxType = 1 // group auth update TrxType_SCHEMA TrxType = 2 // group schema TrxType_PRODUCER TrxType = 3 // update group producer TrxType_ANNOUNCE TrxType = 4 // self announce, producer or user) TrxType_REQ_BLOCK_FORWARD TrxType = 5 // request next block TrxType_REQ_BLOCK_BACKWARD TrxType = 6 // request previous block TrxType_REQ_BLOCK_RESP TrxType = 7 // response request next block TrxType_BLOCK_SYNCED TrxType = 8 // block for producer to sync (old block) TrxType_BLOCK_PRODUCED TrxType = 9 // block for producer to merge (newly produced block) )
func (TrxType) Descriptor ¶
func (TrxType) Descriptor() protoreflect.EnumDescriptor
func (TrxType) EnumDescriptor
deprecated
func (TrxType) Number ¶
func (x TrxType) Number() protoreflect.EnumNumber
func (TrxType) Type ¶
func (TrxType) Type() protoreflect.EnumType