types

package
v0.0.0-...-268552a Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyUnknowAction = iota + 100
	TyCreateGroupAction
	TyUpdateGroupAction
	TyCreateVoteAction
	TyCommitVoteAction
	TyCloseVoteAction
	TyUpdateMemberAction

	NameCreateGroupAction  = "CreateGroup"
	NameUpdateGroupAction  = "UpdateGroup"
	NameCreateVoteAction   = "CreateVote"
	NameCommitVoteAction   = "CommitVote"
	NameCloseVoteAction    = "CloseVote"
	NameUpdateMemberAction = "UpdateMember"
)

action类型id和name,这些常量可以自定义修改

View Source
const (
	TyUnknownLog = iota + 100
	TyCreateGroupLog
	TyUpdateGroupLog
	TyCreateVoteLog
	TyCommitVoteLog
	TyCloseVoteLog
	TyUpdateMemberLog

	NameCreateGroupLog  = "CreateGroupLog"
	NameUpdateGroupLog  = "UpdateGroupLog"
	NameCreateVoteLog   = "CreateVoteLog"
	NameCommitVoteLog   = "CommitVoteLog"
	NameCloseVoteLog    = "CloseVoteLog"
	NameUpdateMemberLog = "UpdateMemberLog"
)

log类型id值

Variables

View Source
var (
	//VoteX 执行器名称定义
	VoteX = "vote"
)

Functions

func InitExecutor

func InitExecutor(cfg *types.TuringchainConfig)

InitExecutor defines register executor

func InitFork

func InitFork(cfg *types.TuringchainConfig)

InitFork defines register fork

func NewType

func NewType(cfg *types.TuringchainConfig) *voteType

Types

type CloseVote

type CloseVote struct {
	VoteID               string   `protobuf:"bytes,1,opt,name=voteID,proto3" json:"voteID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CloseVote) Descriptor

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

func (*CloseVote) GetVoteID

func (m *CloseVote) GetVoteID() string

func (*CloseVote) ProtoMessage

func (*CloseVote) ProtoMessage()

func (*CloseVote) Reset

func (m *CloseVote) Reset()

func (*CloseVote) String

func (m *CloseVote) String() string

func (*CloseVote) XXX_DiscardUnknown

func (m *CloseVote) XXX_DiscardUnknown()

func (*CloseVote) XXX_Marshal

func (m *CloseVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CloseVote) XXX_Merge

func (m *CloseVote) XXX_Merge(src proto.Message)

func (*CloseVote) XXX_Size

func (m *CloseVote) XXX_Size() int

func (*CloseVote) XXX_Unmarshal

func (m *CloseVote) XXX_Unmarshal(b []byte) error

type CommitInfo

type CommitInfo struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	TxHash               string   `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"`
	VoteWeight           uint32   `protobuf:"varint,3,opt,name=voteWeight,proto3" json:"voteWeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommitInfo) Descriptor

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

func (*CommitInfo) GetAddr

func (m *CommitInfo) GetAddr() string

func (*CommitInfo) GetTxHash

func (m *CommitInfo) GetTxHash() string

func (*CommitInfo) GetVoteWeight

func (m *CommitInfo) GetVoteWeight() uint32

func (*CommitInfo) ProtoMessage

func (*CommitInfo) ProtoMessage()

func (*CommitInfo) Reset

func (m *CommitInfo) Reset()

func (*CommitInfo) String

func (m *CommitInfo) String() string

func (*CommitInfo) XXX_DiscardUnknown

func (m *CommitInfo) XXX_DiscardUnknown()

func (*CommitInfo) XXX_Marshal

func (m *CommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitInfo) XXX_Merge

func (m *CommitInfo) XXX_Merge(src proto.Message)

func (*CommitInfo) XXX_Size

func (m *CommitInfo) XXX_Size() int

func (*CommitInfo) XXX_Unmarshal

func (m *CommitInfo) XXX_Unmarshal(b []byte) error

type CommitVote

type CommitVote struct {
	VoteID               string   `protobuf:"bytes,1,opt,name=voteID,proto3" json:"voteID,omitempty"`
	OptionIndex          uint32   `protobuf:"varint,2,opt,name=optionIndex,proto3" json:"optionIndex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

创建提交投票交易,请求结构

func (*CommitVote) Descriptor

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

func (*CommitVote) GetOptionIndex

func (m *CommitVote) GetOptionIndex() uint32

func (*CommitVote) GetVoteID

func (m *CommitVote) GetVoteID() string

func (*CommitVote) ProtoMessage

func (*CommitVote) ProtoMessage()

func (*CommitVote) Reset

func (m *CommitVote) Reset()

func (*CommitVote) String

func (m *CommitVote) String() string

func (*CommitVote) XXX_DiscardUnknown

func (m *CommitVote) XXX_DiscardUnknown()

func (*CommitVote) XXX_Marshal

func (m *CommitVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitVote) XXX_Merge

func (m *CommitVote) XXX_Merge(src proto.Message)

func (*CommitVote) XXX_Size

func (m *CommitVote) XXX_Size() int

func (*CommitVote) XXX_Unmarshal

func (m *CommitVote) XXX_Unmarshal(b []byte) error

type CreateGroup

type CreateGroup struct {
	Name                 string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Admins               []string       `protobuf:"bytes,2,rep,name=admins,proto3" json:"admins,omitempty"`
	Members              []*GroupMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	Description          string         `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

创建投票组

func (*CreateGroup) Descriptor

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

func (*CreateGroup) GetAdmins

func (m *CreateGroup) GetAdmins() []string

func (*CreateGroup) GetDescription

func (m *CreateGroup) GetDescription() string

func (*CreateGroup) GetMembers

func (m *CreateGroup) GetMembers() []*GroupMember

func (*CreateGroup) GetName

func (m *CreateGroup) GetName() string

func (*CreateGroup) ProtoMessage

func (*CreateGroup) ProtoMessage()

func (*CreateGroup) Reset

func (m *CreateGroup) Reset()

func (*CreateGroup) String

func (m *CreateGroup) String() string

func (*CreateGroup) XXX_DiscardUnknown

func (m *CreateGroup) XXX_DiscardUnknown()

func (*CreateGroup) XXX_Marshal

func (m *CreateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateGroup) XXX_Merge

func (m *CreateGroup) XXX_Merge(src proto.Message)

func (*CreateGroup) XXX_Size

func (m *CreateGroup) XXX_Size() int

func (*CreateGroup) XXX_Unmarshal

func (m *CreateGroup) XXX_Unmarshal(b []byte) error

type CreateVote

type CreateVote struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	GroupID              string   `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"`
	VoteOptions          []string `protobuf:"bytes,3,rep,name=voteOptions,proto3" json:"voteOptions,omitempty"`
	BeginTimestamp       int64    `protobuf:"varint,4,opt,name=beginTimestamp,proto3" json:"beginTimestamp,omitempty"`
	EndTimestamp         int64    `protobuf:"varint,5,opt,name=endTimestamp,proto3" json:"endTimestamp,omitempty"`
	Description          string   `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

创建投票交易,请求结构

func (*CreateVote) Descriptor

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

func (*CreateVote) GetBeginTimestamp

func (m *CreateVote) GetBeginTimestamp() int64

func (*CreateVote) GetDescription

func (m *CreateVote) GetDescription() string

func (*CreateVote) GetEndTimestamp

func (m *CreateVote) GetEndTimestamp() int64

func (*CreateVote) GetGroupID

func (m *CreateVote) GetGroupID() string

func (*CreateVote) GetName

func (m *CreateVote) GetName() string

func (*CreateVote) GetVoteOptions

func (m *CreateVote) GetVoteOptions() []string

func (*CreateVote) ProtoMessage

func (*CreateVote) ProtoMessage()

func (*CreateVote) Reset

func (m *CreateVote) Reset()

func (*CreateVote) String

func (m *CreateVote) String() string

func (*CreateVote) XXX_DiscardUnknown

func (m *CreateVote) XXX_DiscardUnknown()

func (*CreateVote) XXX_Marshal

func (m *CreateVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateVote) XXX_Merge

func (m *CreateVote) XXX_Merge(src proto.Message)

func (*CreateVote) XXX_Size

func (m *CreateVote) XXX_Size() int

func (*CreateVote) XXX_Unmarshal

func (m *CreateVote) XXX_Unmarshal(b []byte) error

type GroupInfo

type GroupInfo 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"`
	MemberNum            uint32         `protobuf:"varint,3,opt,name=memberNum,proto3" json:"memberNum,omitempty"`
	Creator              string         `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	Admins               []string       `protobuf:"bytes,5,rep,name=admins,proto3" json:"admins,omitempty"`
	Members              []*GroupMember `protobuf:"bytes,6,rep,name=members,proto3" json:"members,omitempty"`
	Description          string         `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	VoteNum              uint32         `protobuf:"varint,8,opt,name=voteNum,proto3" json:"voteNum,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

投票组信息

func (*GroupInfo) Descriptor

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

func (*GroupInfo) GetAdmins

func (m *GroupInfo) GetAdmins() []string

func (*GroupInfo) GetCreator

func (m *GroupInfo) GetCreator() string

func (*GroupInfo) GetDescription

func (m *GroupInfo) GetDescription() string

func (*GroupInfo) GetID

func (m *GroupInfo) GetID() string

func (*GroupInfo) GetMemberNum

func (m *GroupInfo) GetMemberNum() uint32

func (*GroupInfo) GetMembers

func (m *GroupInfo) GetMembers() []*GroupMember

func (*GroupInfo) GetName

func (m *GroupInfo) GetName() string

func (*GroupInfo) GetVoteNum

func (m *GroupInfo) GetVoteNum() uint32

func (*GroupInfo) ProtoMessage

func (*GroupInfo) ProtoMessage()

func (*GroupInfo) Reset

func (m *GroupInfo) Reset()

func (*GroupInfo) String

func (m *GroupInfo) String() string

func (*GroupInfo) XXX_DiscardUnknown

func (m *GroupInfo) XXX_DiscardUnknown()

func (*GroupInfo) XXX_Marshal

func (m *GroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupInfo) XXX_Merge

func (m *GroupInfo) XXX_Merge(src proto.Message)

func (*GroupInfo) XXX_Size

func (m *GroupInfo) XXX_Size() int

func (*GroupInfo) XXX_Unmarshal

func (m *GroupInfo) XXX_Unmarshal(b []byte) error

type GroupInfos

type GroupInfos struct {
	GroupList            []*GroupInfo `protobuf:"bytes,1,rep,name=groupList,proto3" json:"groupList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*GroupInfos) Descriptor

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

func (*GroupInfos) GetGroupList

func (m *GroupInfos) GetGroupList() []*GroupInfo

func (*GroupInfos) ProtoMessage

func (*GroupInfos) ProtoMessage()

func (*GroupInfos) Reset

func (m *GroupInfos) Reset()

func (*GroupInfos) String

func (m *GroupInfos) String() string

func (*GroupInfos) XXX_DiscardUnknown

func (m *GroupInfos) XXX_DiscardUnknown()

func (*GroupInfos) XXX_Marshal

func (m *GroupInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupInfos) XXX_Merge

func (m *GroupInfos) XXX_Merge(src proto.Message)

func (*GroupInfos) XXX_Size

func (m *GroupInfos) XXX_Size() int

func (*GroupInfos) XXX_Unmarshal

func (m *GroupInfos) XXX_Unmarshal(b []byte) error

type GroupMember

type GroupMember struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	VoteWeight           uint32   `protobuf:"varint,2,opt,name=voteWeight,proto3" json:"voteWeight,omitempty"`
	NickName             string   `protobuf:"bytes,3,opt,name=nickName,proto3" json:"nickName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GroupMember) Descriptor

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

func (*GroupMember) GetAddr

func (m *GroupMember) GetAddr() string

func (*GroupMember) GetNickName

func (m *GroupMember) GetNickName() string

func (*GroupMember) GetVoteWeight

func (m *GroupMember) GetVoteWeight() uint32

func (*GroupMember) ProtoMessage

func (*GroupMember) ProtoMessage()

func (*GroupMember) Reset

func (m *GroupMember) Reset()

func (*GroupMember) String

func (m *GroupMember) String() string

func (*GroupMember) XXX_DiscardUnknown

func (m *GroupMember) XXX_DiscardUnknown()

func (*GroupMember) XXX_Marshal

func (m *GroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupMember) XXX_Merge

func (m *GroupMember) XXX_Merge(src proto.Message)

func (*GroupMember) XXX_Size

func (m *GroupMember) XXX_Size() int

func (*GroupMember) XXX_Unmarshal

func (m *GroupMember) XXX_Unmarshal(b []byte) error

type MemberInfo

type MemberInfo struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	GroupIDs             []string `protobuf:"bytes,3,rep,name=groupIDs,proto3" json:"groupIDs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MemberInfo) Descriptor

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

func (*MemberInfo) GetAddr

func (m *MemberInfo) GetAddr() string

func (*MemberInfo) GetGroupIDs

func (m *MemberInfo) GetGroupIDs() []string

func (*MemberInfo) GetName

func (m *MemberInfo) GetName() string

func (*MemberInfo) ProtoMessage

func (*MemberInfo) ProtoMessage()

func (*MemberInfo) Reset

func (m *MemberInfo) Reset()

func (*MemberInfo) String

func (m *MemberInfo) String() string

func (*MemberInfo) XXX_DiscardUnknown

func (m *MemberInfo) XXX_DiscardUnknown()

func (*MemberInfo) XXX_Marshal

func (m *MemberInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberInfo) XXX_Merge

func (m *MemberInfo) XXX_Merge(src proto.Message)

func (*MemberInfo) XXX_Size

func (m *MemberInfo) XXX_Size() int

func (*MemberInfo) XXX_Unmarshal

func (m *MemberInfo) XXX_Unmarshal(b []byte) error

type MemberInfos

type MemberInfos struct {
	MemberList           []*MemberInfo `protobuf:"bytes,1,rep,name=memberList,proto3" json:"memberList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*MemberInfos) Descriptor

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

func (*MemberInfos) GetMemberList

func (m *MemberInfos) GetMemberList() []*MemberInfo

func (*MemberInfos) ProtoMessage

func (*MemberInfos) ProtoMessage()

func (*MemberInfos) Reset

func (m *MemberInfos) Reset()

func (*MemberInfos) String

func (m *MemberInfos) String() string

func (*MemberInfos) XXX_DiscardUnknown

func (m *MemberInfos) XXX_DiscardUnknown()

func (*MemberInfos) XXX_Marshal

func (m *MemberInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberInfos) XXX_Merge

func (m *MemberInfos) XXX_Merge(src proto.Message)

func (*MemberInfos) XXX_Size

func (m *MemberInfos) XXX_Size() int

func (*MemberInfos) XXX_Unmarshal

func (m *MemberInfos) XXX_Unmarshal(b []byte) error

type ReplyVoteList

type ReplyVoteList struct {
	VoteList             []*VoteInfo `protobuf:"bytes,1,rep,name=voteList,proto3" json:"voteList,omitempty"`
	CurrentTimestamp     int64       `protobuf:"varint,2,opt,name=currentTimestamp,proto3" json:"currentTimestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ReplyVoteList) Descriptor

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

func (*ReplyVoteList) GetCurrentTimestamp

func (m *ReplyVoteList) GetCurrentTimestamp() int64

func (*ReplyVoteList) GetVoteList

func (m *ReplyVoteList) GetVoteList() []*VoteInfo

func (*ReplyVoteList) ProtoMessage

func (*ReplyVoteList) ProtoMessage()

func (*ReplyVoteList) Reset

func (m *ReplyVoteList) Reset()

func (*ReplyVoteList) String

func (m *ReplyVoteList) String() string

func (*ReplyVoteList) XXX_DiscardUnknown

func (m *ReplyVoteList) XXX_DiscardUnknown()

func (*ReplyVoteList) XXX_Marshal

func (m *ReplyVoteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyVoteList) XXX_Merge

func (m *ReplyVoteList) XXX_Merge(src proto.Message)

func (*ReplyVoteList) XXX_Size

func (m *ReplyVoteList) XXX_Size() int

func (*ReplyVoteList) XXX_Unmarshal

func (m *ReplyVoteList) XXX_Unmarshal(b []byte) error

type ReqListItem

type ReqListItem struct {
	StartItemID          string   `protobuf:"bytes,1,opt,name=startItemID,proto3" json:"startItemID,omitempty"`
	Count                int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

列表请求结构

func (*ReqListItem) Descriptor

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

func (*ReqListItem) GetCount

func (m *ReqListItem) GetCount() int32

func (*ReqListItem) GetDirection

func (m *ReqListItem) GetDirection() int32

func (*ReqListItem) GetStartItemID

func (m *ReqListItem) GetStartItemID() string

func (*ReqListItem) ProtoMessage

func (*ReqListItem) ProtoMessage()

func (*ReqListItem) Reset

func (m *ReqListItem) Reset()

func (*ReqListItem) String

func (m *ReqListItem) String() string

func (*ReqListItem) XXX_DiscardUnknown

func (m *ReqListItem) XXX_DiscardUnknown()

func (*ReqListItem) XXX_Marshal

func (m *ReqListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqListItem) XXX_Merge

func (m *ReqListItem) XXX_Merge(src proto.Message)

func (*ReqListItem) XXX_Size

func (m *ReqListItem) XXX_Size() int

func (*ReqListItem) XXX_Unmarshal

func (m *ReqListItem) XXX_Unmarshal(b []byte) error

type ReqListVote

type ReqListVote struct {
	GroupID              string       `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	ListReq              *ReqListItem `protobuf:"bytes,2,opt,name=listReq,proto3" json:"listReq,omitempty"`
	Status               uint32       `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReqListVote) Descriptor

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

func (*ReqListVote) GetGroupID

func (m *ReqListVote) GetGroupID() string

func (*ReqListVote) GetListReq

func (m *ReqListVote) GetListReq() *ReqListItem

func (*ReqListVote) GetStatus

func (m *ReqListVote) GetStatus() uint32

func (*ReqListVote) ProtoMessage

func (*ReqListVote) ProtoMessage()

func (*ReqListVote) Reset

func (m *ReqListVote) Reset()

func (*ReqListVote) String

func (m *ReqListVote) String() string

func (*ReqListVote) XXX_DiscardUnknown

func (m *ReqListVote) XXX_DiscardUnknown()

func (*ReqListVote) XXX_Marshal

func (m *ReqListVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqListVote) XXX_Merge

func (m *ReqListVote) XXX_Merge(src proto.Message)

func (*ReqListVote) XXX_Size

func (m *ReqListVote) XXX_Size() int

func (*ReqListVote) XXX_Unmarshal

func (m *ReqListVote) XXX_Unmarshal(b []byte) error

type ReqStrings

type ReqStrings struct {
	Items                []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqStrings) Descriptor

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

func (*ReqStrings) GetItems

func (m *ReqStrings) GetItems() []string

func (*ReqStrings) ProtoMessage

func (*ReqStrings) ProtoMessage()

func (*ReqStrings) Reset

func (m *ReqStrings) Reset()

func (*ReqStrings) String

func (m *ReqStrings) String() string

func (*ReqStrings) XXX_DiscardUnknown

func (m *ReqStrings) XXX_DiscardUnknown()

func (*ReqStrings) XXX_Marshal

func (m *ReqStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqStrings) XXX_Merge

func (m *ReqStrings) XXX_Merge(src proto.Message)

func (*ReqStrings) XXX_Size

func (m *ReqStrings) XXX_Size() int

func (*ReqStrings) XXX_Unmarshal

func (m *ReqStrings) XXX_Unmarshal(b []byte) error

type UpdateGroup

type UpdateGroup struct {
	GroupID              string         `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	AddMembers           []*GroupMember `protobuf:"bytes,2,rep,name=addMembers,proto3" json:"addMembers,omitempty"`
	RemoveMembers        []string       `protobuf:"bytes,3,rep,name=removeMembers,proto3" json:"removeMembers,omitempty"`
	AddAdmins            []string       `protobuf:"bytes,4,rep,name=addAdmins,proto3" json:"addAdmins,omitempty"`
	RemoveAdmins         []string       `protobuf:"bytes,5,rep,name=removeAdmins,proto3" json:"removeAdmins,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

更新投票组

func (*UpdateGroup) Descriptor

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

func (*UpdateGroup) GetAddAdmins

func (m *UpdateGroup) GetAddAdmins() []string

func (*UpdateGroup) GetAddMembers

func (m *UpdateGroup) GetAddMembers() []*GroupMember

func (*UpdateGroup) GetGroupID

func (m *UpdateGroup) GetGroupID() string

func (*UpdateGroup) GetRemoveAdmins

func (m *UpdateGroup) GetRemoveAdmins() []string

func (*UpdateGroup) GetRemoveMembers

func (m *UpdateGroup) GetRemoveMembers() []string

func (*UpdateGroup) ProtoMessage

func (*UpdateGroup) ProtoMessage()

func (*UpdateGroup) Reset

func (m *UpdateGroup) Reset()

func (*UpdateGroup) String

func (m *UpdateGroup) String() string

func (*UpdateGroup) XXX_DiscardUnknown

func (m *UpdateGroup) XXX_DiscardUnknown()

func (*UpdateGroup) XXX_Marshal

func (m *UpdateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateGroup) XXX_Merge

func (m *UpdateGroup) XXX_Merge(src proto.Message)

func (*UpdateGroup) XXX_Size

func (m *UpdateGroup) XXX_Size() int

func (*UpdateGroup) XXX_Unmarshal

func (m *UpdateGroup) XXX_Unmarshal(b []byte) error

type UpdateMember

type UpdateMember struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateMember) Descriptor

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

func (*UpdateMember) GetName

func (m *UpdateMember) GetName() string

func (*UpdateMember) ProtoMessage

func (*UpdateMember) ProtoMessage()

func (*UpdateMember) Reset

func (m *UpdateMember) Reset()

func (*UpdateMember) String

func (m *UpdateMember) String() string

func (*UpdateMember) XXX_DiscardUnknown

func (m *UpdateMember) XXX_DiscardUnknown()

func (*UpdateMember) XXX_Marshal

func (m *UpdateMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateMember) XXX_Merge

func (m *UpdateMember) XXX_Merge(src proto.Message)

func (*UpdateMember) XXX_Size

func (m *UpdateMember) XXX_Size() int

func (*UpdateMember) XXX_Unmarshal

func (m *UpdateMember) XXX_Unmarshal(b []byte) error

type VoteAction

type VoteAction struct {
	Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*VoteAction_CreateGroup
	//	*VoteAction_UpdateGroup
	//	*VoteAction_CreateVote
	//	*VoteAction_CommitVote
	//	*VoteAction_CloseVote
	//	*VoteAction_UpdateMember
	Value                isVoteAction_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

vote 合约交易行为总类型

func (*VoteAction) Descriptor

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

func (*VoteAction) GetCloseVote

func (m *VoteAction) GetCloseVote() *CloseVote

func (*VoteAction) GetCommitVote

func (m *VoteAction) GetCommitVote() *CommitVote

func (*VoteAction) GetCreateGroup

func (m *VoteAction) GetCreateGroup() *CreateGroup

func (*VoteAction) GetCreateVote

func (m *VoteAction) GetCreateVote() *CreateVote

func (*VoteAction) GetTy

func (m *VoteAction) GetTy() int32

func (*VoteAction) GetUpdateGroup

func (m *VoteAction) GetUpdateGroup() *UpdateGroup

func (*VoteAction) GetUpdateMember

func (m *VoteAction) GetUpdateMember() *UpdateMember

func (*VoteAction) GetValue

func (m *VoteAction) GetValue() isVoteAction_Value

func (*VoteAction) ProtoMessage

func (*VoteAction) ProtoMessage()

func (*VoteAction) Reset

func (m *VoteAction) Reset()

func (*VoteAction) String

func (m *VoteAction) String() string

func (*VoteAction) XXX_DiscardUnknown

func (m *VoteAction) XXX_DiscardUnknown()

func (*VoteAction) XXX_Marshal

func (m *VoteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteAction) XXX_Merge

func (m *VoteAction) XXX_Merge(src proto.Message)

func (*VoteAction) XXX_OneofWrappers

func (*VoteAction) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*VoteAction) XXX_Size

func (m *VoteAction) XXX_Size() int

func (*VoteAction) XXX_Unmarshal

func (m *VoteAction) XXX_Unmarshal(b []byte) error

type VoteAction_CloseVote

type VoteAction_CloseVote struct {
	CloseVote *CloseVote `protobuf:"bytes,6,opt,name=closeVote,proto3,oneof"`
}

type VoteAction_CommitVote

type VoteAction_CommitVote struct {
	CommitVote *CommitVote `protobuf:"bytes,5,opt,name=commitVote,proto3,oneof"`
}

type VoteAction_CreateGroup

type VoteAction_CreateGroup struct {
	CreateGroup *CreateGroup `protobuf:"bytes,2,opt,name=createGroup,proto3,oneof"`
}

type VoteAction_CreateVote

type VoteAction_CreateVote struct {
	CreateVote *CreateVote `protobuf:"bytes,4,opt,name=createVote,proto3,oneof"`
}

type VoteAction_UpdateGroup

type VoteAction_UpdateGroup struct {
	UpdateGroup *UpdateGroup `protobuf:"bytes,3,opt,name=updateGroup,proto3,oneof"`
}

type VoteAction_UpdateMember

type VoteAction_UpdateMember struct {
	UpdateMember *UpdateMember `protobuf:"bytes,7,opt,name=updateMember,proto3,oneof"`
}

type VoteInfo

type VoteInfo 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"`
	Creator              string        `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	GroupID              string        `protobuf:"bytes,4,opt,name=groupID,proto3" json:"groupID,omitempty"`
	VoteOptions          []*VoteOption `protobuf:"bytes,5,rep,name=voteOptions,proto3" json:"voteOptions,omitempty"`
	BeginTimestamp       int64         `protobuf:"varint,6,opt,name=beginTimestamp,proto3" json:"beginTimestamp,omitempty"`
	EndTimestamp         int64         `protobuf:"varint,7,opt,name=endTimestamp,proto3" json:"endTimestamp,omitempty"`
	CommitInfos          []*CommitInfo `protobuf:"bytes,8,rep,name=commitInfos,proto3" json:"commitInfos,omitempty"`
	Description          string        `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	Status               uint32        `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

投票信息

func (*VoteInfo) Descriptor

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

func (*VoteInfo) GetBeginTimestamp

func (m *VoteInfo) GetBeginTimestamp() int64

func (*VoteInfo) GetCommitInfos

func (m *VoteInfo) GetCommitInfos() []*CommitInfo

func (*VoteInfo) GetCreator

func (m *VoteInfo) GetCreator() string

func (*VoteInfo) GetDescription

func (m *VoteInfo) GetDescription() string

func (*VoteInfo) GetEndTimestamp

func (m *VoteInfo) GetEndTimestamp() int64

func (*VoteInfo) GetGroupID

func (m *VoteInfo) GetGroupID() string

func (*VoteInfo) GetID

func (m *VoteInfo) GetID() string

func (*VoteInfo) GetName

func (m *VoteInfo) GetName() string

func (*VoteInfo) GetStatus

func (m *VoteInfo) GetStatus() uint32

func (*VoteInfo) GetVoteOptions

func (m *VoteInfo) GetVoteOptions() []*VoteOption

func (*VoteInfo) ProtoMessage

func (*VoteInfo) ProtoMessage()

func (*VoteInfo) Reset

func (m *VoteInfo) Reset()

func (*VoteInfo) String

func (m *VoteInfo) String() string

func (*VoteInfo) XXX_DiscardUnknown

func (m *VoteInfo) XXX_DiscardUnknown()

func (*VoteInfo) XXX_Marshal

func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteInfo) XXX_Merge

func (m *VoteInfo) XXX_Merge(src proto.Message)

func (*VoteInfo) XXX_Size

func (m *VoteInfo) XXX_Size() int

func (*VoteInfo) XXX_Unmarshal

func (m *VoteInfo) XXX_Unmarshal(b []byte) error

type VoteInfos

type VoteInfos struct {
	VoteList             []*VoteInfo `protobuf:"bytes,1,rep,name=voteList,proto3" json:"voteList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*VoteInfos) Descriptor

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

func (*VoteInfos) GetVoteList

func (m *VoteInfos) GetVoteList() []*VoteInfo

func (*VoteInfos) ProtoMessage

func (*VoteInfos) ProtoMessage()

func (*VoteInfos) Reset

func (m *VoteInfos) Reset()

func (*VoteInfos) String

func (m *VoteInfos) String() string

func (*VoteInfos) XXX_DiscardUnknown

func (m *VoteInfos) XXX_DiscardUnknown()

func (*VoteInfos) XXX_Marshal

func (m *VoteInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteInfos) XXX_Merge

func (m *VoteInfos) XXX_Merge(src proto.Message)

func (*VoteInfos) XXX_Size

func (m *VoteInfos) XXX_Size() int

func (*VoteInfos) XXX_Unmarshal

func (m *VoteInfos) XXX_Unmarshal(b []byte) error

type VoteOption

type VoteOption struct {
	Option               string   `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
	Score                uint32   `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

投票选项

func (*VoteOption) Descriptor

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

func (*VoteOption) GetOption

func (m *VoteOption) GetOption() string

func (*VoteOption) GetScore

func (m *VoteOption) GetScore() uint32

func (*VoteOption) ProtoMessage

func (*VoteOption) ProtoMessage()

func (*VoteOption) Reset

func (m *VoteOption) Reset()

func (*VoteOption) String

func (m *VoteOption) String() string

func (*VoteOption) XXX_DiscardUnknown

func (m *VoteOption) XXX_DiscardUnknown()

func (*VoteOption) XXX_Marshal

func (m *VoteOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteOption) XXX_Merge

func (m *VoteOption) XXX_Merge(src proto.Message)

func (*VoteOption) XXX_Size

func (m *VoteOption) XXX_Size() int

func (*VoteOption) XXX_Unmarshal

func (m *VoteOption) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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