Documentation ¶
Overview ¶
Copyright © 2018 Zhao Ming <mint.zhao.chiu@gmail.com>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package types is a generated protocol buffer package. It is generated from these files: application.proto common.proto config.proto consensus.proto It has these top-level messages: AppMessage AppMessageHeader AppMetadata Version AppVersion Empty BlockHeader BlockTxs Block Transaction GenesisTxProposal AppConfig ConsensusBlockConfig TxResponseSync
Copyright © 2018 Zhao Ming <mint.zhao.chiu@gmail.com>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func RegisterApplicationServer(s *grpc.Server, srv ApplicationServer)
- type AppConfig
- func (*AppConfig) Descriptor() ([]byte, []int)
- func (this *AppConfig) Equal(that interface{}) bool
- func (m *AppConfig) GetBlockInterval() int64
- func (m *AppConfig) GetBlockTxCount() int64
- func (m *AppConfig) GetHash() string
- func (this *AppConfig) GoString() string
- func (m *AppConfig) Marshal() (dAtA []byte, err error)
- func (m *AppConfig) MarshalTo(dAtA []byte) (int, error)
- func (*AppConfig) ProtoMessage()
- func (m *AppConfig) Reset()
- func (m *AppConfig) Size() (n int)
- func (this *AppConfig) String() string
- func (m *AppConfig) Unmarshal(dAtA []byte) error
- type AppMessage
- func (*AppMessage) Descriptor() ([]byte, []int)
- func (this *AppMessage) Equal(that interface{}) bool
- func (m *AppMessage) GetHeader() *AppMessageHeader
- func (m *AppMessage) GetPayload() []byte
- func (this *AppMessage) GoString() string
- func (m *AppMessage) Marshal() (dAtA []byte, err error)
- func (m *AppMessage) MarshalTo(dAtA []byte) (int, error)
- func (*AppMessage) ProtoMessage()
- func (m *AppMessage) Reset()
- func (m *AppMessage) Size() (n int)
- func (this *AppMessage) String() string
- func (m *AppMessage) Unmarshal(dAtA []byte) error
- type AppMessageHeader
- func (*AppMessageHeader) Descriptor() ([]byte, []int)
- func (this *AppMessageHeader) Equal(that interface{}) bool
- func (m *AppMessageHeader) GetMeta() *AppMetadata
- func (m *AppMessageHeader) GetTimestamp() int64
- func (m *AppMessageHeader) GetType() AppMessageType
- func (this *AppMessageHeader) GoString() string
- func (m *AppMessageHeader) Marshal() (dAtA []byte, err error)
- func (m *AppMessageHeader) MarshalTo(dAtA []byte) (int, error)
- func (*AppMessageHeader) ProtoMessage()
- func (m *AppMessageHeader) Reset()
- func (m *AppMessageHeader) Size() (n int)
- func (this *AppMessageHeader) String() string
- func (m *AppMessageHeader) Unmarshal(dAtA []byte) error
- type AppMessageType
- type AppMetadata
- func (*AppMetadata) Descriptor() ([]byte, []int)
- func (this *AppMetadata) Equal(that interface{}) bool
- func (m *AppMetadata) GetName() string
- func (m *AppMetadata) GetVersion() *AppVersion
- func (this *AppMetadata) GoString() string
- func (m *AppMetadata) Marshal() (dAtA []byte, err error)
- func (m *AppMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*AppMetadata) ProtoMessage()
- func (m *AppMetadata) Reset()
- func (m *AppMetadata) Size() (n int)
- func (this *AppMetadata) String() string
- func (m *AppMetadata) Unmarshal(dAtA []byte) error
- type AppVersion
- func (av *AppVersion) Compatible(other *AppVersion) bool
- func (*AppVersion) Descriptor() ([]byte, []int)
- func (this *AppVersion) Equal(that interface{}) bool
- func (m *AppVersion) GetBackwards() *Version
- func (m *AppVersion) GetVersion() *Version
- func (this *AppVersion) GoString() string
- func (m *AppVersion) Marshal() (dAtA []byte, err error)
- func (m *AppVersion) MarshalTo(dAtA []byte) (int, error)
- func (*AppVersion) ProtoMessage()
- func (m *AppVersion) Reset()
- func (m *AppVersion) Size() (n int)
- func (this *AppVersion) String() string
- func (m *AppVersion) Unmarshal(dAtA []byte) error
- type ApplicationClient
- type ApplicationServer
- type Application_AppStreamClient
- type Application_AppStreamServer
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (this *Block) Equal(that interface{}) bool
- func (m *Block) GetHeader() *BlockHeader
- func (m *Block) GetTxs() *BlockTxs
- func (this *Block) GoString() string
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (this *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (this *BlockHeader) Equal(that interface{}) bool
- func (m *BlockHeader) GetBlockHeight() uint64
- func (m *BlockHeader) GetPreviousBlock() []byte
- func (m *BlockHeader) GetTxroot() []byte
- func (this *BlockHeader) GoString() string
- func (m *BlockHeader) Marshal() (dAtA []byte, err error)
- func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) Size() (n int)
- func (this *BlockHeader) String() string
- func (m *BlockHeader) Unmarshal(dAtA []byte) error
- type BlockTxs
- func (*BlockTxs) Descriptor() ([]byte, []int)
- func (this *BlockTxs) Equal(that interface{}) bool
- func (m *BlockTxs) GetTxs() []*Transaction
- func (this *BlockTxs) GoString() string
- func (b *BlockTxs) Hash(hash string) ([]byte, error)
- func (m *BlockTxs) Marshal() (dAtA []byte, err error)
- func (m *BlockTxs) MarshalTo(dAtA []byte) (int, error)
- func (*BlockTxs) ProtoMessage()
- func (m *BlockTxs) Reset()
- func (m *BlockTxs) Size() (n int)
- func (this *BlockTxs) String() string
- func (m *BlockTxs) Unmarshal(dAtA []byte) error
- type ConsensusBlockConfig
- func (*ConsensusBlockConfig) Descriptor() ([]byte, []int)
- func (this *ConsensusBlockConfig) Equal(that interface{}) bool
- func (m *ConsensusBlockConfig) GetMaxBlockSize() uint64
- func (m *ConsensusBlockConfig) GetMaxTxCount() uint64
- func (m *ConsensusBlockConfig) GetMaxTxSize() uint64
- func (m *ConsensusBlockConfig) GetTimeout() string
- func (this *ConsensusBlockConfig) GoString() string
- func (m *ConsensusBlockConfig) Marshal() (dAtA []byte, err error)
- func (m *ConsensusBlockConfig) MarshalTo(dAtA []byte) (int, error)
- func (*ConsensusBlockConfig) ProtoMessage()
- func (m *ConsensusBlockConfig) Reset()
- func (m *ConsensusBlockConfig) Size() (n int)
- func (this *ConsensusBlockConfig) String() string
- func (m *ConsensusBlockConfig) Unmarshal(dAtA []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (this *Empty) Equal(that interface{}) bool
- func (this *Empty) GoString() string
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (this *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- type GenesisTxProposal
- func (*GenesisTxProposal) Descriptor() ([]byte, []int)
- func (this *GenesisTxProposal) Equal(that interface{}) bool
- func (m *GenesisTxProposal) GetConfig() *AppConfig
- func (m *GenesisTxProposal) GetName() string
- func (this *GenesisTxProposal) GoString() string
- func (m *GenesisTxProposal) Marshal() (dAtA []byte, err error)
- func (m *GenesisTxProposal) MarshalTo(dAtA []byte) (int, error)
- func (*GenesisTxProposal) ProtoMessage()
- func (m *GenesisTxProposal) Reset()
- func (m *GenesisTxProposal) Size() (n int)
- func (this *GenesisTxProposal) String() string
- func (m *GenesisTxProposal) Unmarshal(dAtA []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (this *Transaction) Equal(that interface{}) bool
- func (m *Transaction) GetPayload() []byte
- func (this *Transaction) GoString() string
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (this *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- type TxResponseSync
- func (*TxResponseSync) Descriptor() ([]byte, []int)
- func (this *TxResponseSync) Equal(that interface{}) bool
- func (m *TxResponseSync) GetId() string
- func (m *TxResponseSync) GetStatus() TxStatus
- func (this *TxResponseSync) GoString() string
- func (m *TxResponseSync) Marshal() (dAtA []byte, err error)
- func (m *TxResponseSync) MarshalTo(dAtA []byte) (int, error)
- func (*TxResponseSync) ProtoMessage()
- func (m *TxResponseSync) Reset()
- func (m *TxResponseSync) Size() (n int)
- func (this *TxResponseSync) String() string
- func (m *TxResponseSync) Unmarshal(dAtA []byte) error
- type TxStatus
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (this *Version) Equal(that interface{}) bool
- func (m *Version) GetBuild() string
- func (m *Version) GetMajor() string
- func (m *Version) GetMinor() string
- func (this *Version) GoString() string
- func (m *Version) Marshal() (dAtA []byte, err error)
- func (m *Version) MarshalTo(dAtA []byte) (int, error)
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) Size() (n int)
- func (this *Version) String() string
- func (m *Version) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthApplication = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApplication = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthConsensus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConsensus = fmt.Errorf("proto: integer overflow") )
var AppMessageType_name = map[int32]string{
0: "UNKNOWN",
}
var AppMessageType_value = map[string]int32{
"UNKNOWN": 0,
}
var (
ErrEmptyVersion = errors.New("empty version string")
)
Software versioning: https://en.wikipedia.org/wiki/Software_versioning
var TxStatus_name = map[int32]string{
0: "TX_OK",
}
var TxStatus_value = map[string]int32{
"TX_OK": 0,
}
Functions ¶
func RegisterApplicationServer ¶
func RegisterApplicationServer(s *grpc.Server, srv ApplicationServer)
Types ¶
type AppConfig ¶
type AppConfig struct { BlockInterval int64 `protobuf:"varint,1,opt,name=blockInterval,proto3" json:"blockInterval,omitempty"` BlockTxCount int64 `protobuf:"varint,2,opt,name=blockTxCount,proto3" json:"blockTxCount,omitempty"` Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` }
AppConfig
func (*AppConfig) Descriptor ¶
func (*AppConfig) GetBlockInterval ¶
func (*AppConfig) GetBlockTxCount ¶
func (*AppConfig) ProtoMessage ¶
func (*AppConfig) ProtoMessage()
type AppMessage ¶
type AppMessage struct { Header *AppMessageHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
AppMessage
func (*AppMessage) Descriptor ¶
func (*AppMessage) Descriptor() ([]byte, []int)
func (*AppMessage) Equal ¶
func (this *AppMessage) Equal(that interface{}) bool
func (*AppMessage) GetHeader ¶
func (m *AppMessage) GetHeader() *AppMessageHeader
func (*AppMessage) GetPayload ¶
func (m *AppMessage) GetPayload() []byte
func (*AppMessage) GoString ¶
func (this *AppMessage) GoString() string
func (*AppMessage) Marshal ¶
func (m *AppMessage) Marshal() (dAtA []byte, err error)
func (*AppMessage) ProtoMessage ¶
func (*AppMessage) ProtoMessage()
func (*AppMessage) Reset ¶
func (m *AppMessage) Reset()
func (*AppMessage) Size ¶
func (m *AppMessage) Size() (n int)
func (*AppMessage) String ¶
func (this *AppMessage) String() string
func (*AppMessage) Unmarshal ¶
func (m *AppMessage) Unmarshal(dAtA []byte) error
type AppMessageHeader ¶
type AppMessageHeader struct { Meta *AppMetadata `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Type AppMessageType `protobuf:"varint,3,opt,name=type,proto3,enum=types.AppMessageType" json:"type,omitempty"` }
AppMessageHeader
func (*AppMessageHeader) Descriptor ¶
func (*AppMessageHeader) Descriptor() ([]byte, []int)
func (*AppMessageHeader) Equal ¶
func (this *AppMessageHeader) Equal(that interface{}) bool
func (*AppMessageHeader) GetMeta ¶
func (m *AppMessageHeader) GetMeta() *AppMetadata
func (*AppMessageHeader) GetTimestamp ¶
func (m *AppMessageHeader) GetTimestamp() int64
func (*AppMessageHeader) GetType ¶
func (m *AppMessageHeader) GetType() AppMessageType
func (*AppMessageHeader) GoString ¶
func (this *AppMessageHeader) GoString() string
func (*AppMessageHeader) Marshal ¶
func (m *AppMessageHeader) Marshal() (dAtA []byte, err error)
func (*AppMessageHeader) ProtoMessage ¶
func (*AppMessageHeader) ProtoMessage()
func (*AppMessageHeader) Reset ¶
func (m *AppMessageHeader) Reset()
func (*AppMessageHeader) Size ¶
func (m *AppMessageHeader) Size() (n int)
func (*AppMessageHeader) String ¶
func (this *AppMessageHeader) String() string
func (*AppMessageHeader) Unmarshal ¶
func (m *AppMessageHeader) Unmarshal(dAtA []byte) error
type AppMessageType ¶
type AppMessageType int32
AppMessageType
const (
UNKNOWN AppMessageType = 0
)
func (AppMessageType) EnumDescriptor ¶
func (AppMessageType) EnumDescriptor() ([]byte, []int)
func (AppMessageType) String ¶
func (x AppMessageType) String() string
type AppMetadata ¶
type AppMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version *AppVersion `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` }
AppMetadata
func (*AppMetadata) Descriptor ¶
func (*AppMetadata) Descriptor() ([]byte, []int)
func (*AppMetadata) Equal ¶
func (this *AppMetadata) Equal(that interface{}) bool
func (*AppMetadata) GetName ¶
func (m *AppMetadata) GetName() string
func (*AppMetadata) GetVersion ¶
func (m *AppMetadata) GetVersion() *AppVersion
func (*AppMetadata) GoString ¶
func (this *AppMetadata) GoString() string
func (*AppMetadata) Marshal ¶
func (m *AppMetadata) Marshal() (dAtA []byte, err error)
func (*AppMetadata) ProtoMessage ¶
func (*AppMetadata) ProtoMessage()
func (*AppMetadata) Reset ¶
func (m *AppMetadata) Reset()
func (*AppMetadata) Size ¶
func (m *AppMetadata) Size() (n int)
func (*AppMetadata) String ¶
func (this *AppMetadata) String() string
func (*AppMetadata) Unmarshal ¶
func (m *AppMetadata) Unmarshal(dAtA []byte) error
type AppVersion ¶
type AppVersion struct { Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` Backwards *Version `protobuf:"bytes,2,opt,name=backwards" json:"backwards,omitempty"` }
Application version Features:
- upgrade version value must larger than current version
- newest application can compatible a specific version of application, older version than Backwards shouldn't be used in the blockchain network.
func NewAppVersion ¶
func NewAppVersion(version, backwards string) (*AppVersion, error)
NewAppVersion construct app version by version format output string
func (*AppVersion) Compatible ¶
func (av *AppVersion) Compatible(other *AppVersion) bool
Compatible check whether av & other can compatible with each other
func (*AppVersion) Descriptor ¶
func (*AppVersion) Descriptor() ([]byte, []int)
func (*AppVersion) Equal ¶
func (this *AppVersion) Equal(that interface{}) bool
func (*AppVersion) GetBackwards ¶
func (m *AppVersion) GetBackwards() *Version
func (*AppVersion) GetVersion ¶
func (m *AppVersion) GetVersion() *Version
func (*AppVersion) GoString ¶
func (this *AppVersion) GoString() string
func (*AppVersion) Marshal ¶
func (m *AppVersion) Marshal() (dAtA []byte, err error)
func (*AppVersion) ProtoMessage ¶
func (*AppVersion) ProtoMessage()
func (*AppVersion) Reset ¶
func (m *AppVersion) Reset()
func (*AppVersion) Size ¶
func (m *AppVersion) Size() (n int)
func (*AppVersion) String ¶
func (this *AppVersion) String() string
func (*AppVersion) Unmarshal ¶
func (m *AppVersion) Unmarshal(dAtA []byte) error
type ApplicationClient ¶
type ApplicationClient interface { // Register is used to register application to consensus module Register(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) // AppStream used for sending and receiving messages between application & consensus module AppStream(ctx context.Context, opts ...grpc.CallOption) (Application_AppStreamClient, error) }
func NewApplicationClient ¶
func NewApplicationClient(cc *grpc.ClientConn) ApplicationClient
type ApplicationServer ¶
type Application_AppStreamClient ¶
type Application_AppStreamClient interface { Send(*AppMessage) error Recv() (*AppMessage, error) grpc.ClientStream }
type Application_AppStreamServer ¶
type Application_AppStreamServer interface { Send(*AppMessage) error Recv() (*AppMessage, error) grpc.ServerStream }
type Block ¶
type Block struct { Header *BlockHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Txs *BlockTxs `protobuf:"bytes,2,opt,name=txs" json:"txs,omitempty"` }
block
func (*Block) Descriptor ¶
func (*Block) GetHeader ¶
func (m *Block) GetHeader() *BlockHeader
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type BlockHeader ¶
type BlockHeader struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` PreviousBlock []byte `protobuf:"bytes,2,opt,name=previousBlock,proto3" json:"previousBlock,omitempty"` Txroot []byte `protobuf:"bytes,3,opt,name=txroot,proto3" json:"txroot,omitempty"` }
block header
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) Equal ¶
func (this *BlockHeader) Equal(that interface{}) bool
func (*BlockHeader) GetBlockHeight ¶
func (m *BlockHeader) GetBlockHeight() uint64
func (*BlockHeader) GetPreviousBlock ¶
func (m *BlockHeader) GetPreviousBlock() []byte
func (*BlockHeader) GetTxroot ¶
func (m *BlockHeader) GetTxroot() []byte
func (*BlockHeader) GoString ¶
func (this *BlockHeader) GoString() string
func (*BlockHeader) Marshal ¶
func (m *BlockHeader) Marshal() (dAtA []byte, err error)
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) Size ¶
func (m *BlockHeader) Size() (n int)
func (*BlockHeader) String ¶
func (this *BlockHeader) String() string
func (*BlockHeader) Unmarshal ¶
func (m *BlockHeader) Unmarshal(dAtA []byte) error
type BlockTxs ¶
type BlockTxs struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs" json:"txs,omitempty"`
}
block tx
func (*BlockTxs) Descriptor ¶
func (*BlockTxs) GetTxs ¶
func (m *BlockTxs) GetTxs() []*Transaction
func (*BlockTxs) ProtoMessage ¶
func (*BlockTxs) ProtoMessage()
type ConsensusBlockConfig ¶
type ConsensusBlockConfig struct { Timeout string `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` MaxTxCount uint64 `protobuf:"varint,2,opt,name=maxTxCount,proto3" json:"maxTxCount,omitempty"` MaxTxSize uint64 `protobuf:"varint,3,opt,name=maxTxSize,proto3" json:"maxTxSize,omitempty"` MaxBlockSize uint64 `protobuf:"varint,4,opt,name=maxBlockSize,proto3" json:"maxBlockSize,omitempty"` }
consensus block config
func (*ConsensusBlockConfig) Descriptor ¶
func (*ConsensusBlockConfig) Descriptor() ([]byte, []int)
func (*ConsensusBlockConfig) Equal ¶
func (this *ConsensusBlockConfig) Equal(that interface{}) bool
func (*ConsensusBlockConfig) GetMaxBlockSize ¶
func (m *ConsensusBlockConfig) GetMaxBlockSize() uint64
func (*ConsensusBlockConfig) GetMaxTxCount ¶
func (m *ConsensusBlockConfig) GetMaxTxCount() uint64
func (*ConsensusBlockConfig) GetMaxTxSize ¶
func (m *ConsensusBlockConfig) GetMaxTxSize() uint64
func (*ConsensusBlockConfig) GetTimeout ¶
func (m *ConsensusBlockConfig) GetTimeout() string
func (*ConsensusBlockConfig) GoString ¶
func (this *ConsensusBlockConfig) GoString() string
func (*ConsensusBlockConfig) Marshal ¶
func (m *ConsensusBlockConfig) Marshal() (dAtA []byte, err error)
func (*ConsensusBlockConfig) MarshalTo ¶
func (m *ConsensusBlockConfig) MarshalTo(dAtA []byte) (int, error)
func (*ConsensusBlockConfig) ProtoMessage ¶
func (*ConsensusBlockConfig) ProtoMessage()
func (*ConsensusBlockConfig) Reset ¶
func (m *ConsensusBlockConfig) Reset()
func (*ConsensusBlockConfig) Size ¶
func (m *ConsensusBlockConfig) Size() (n int)
func (*ConsensusBlockConfig) String ¶
func (this *ConsensusBlockConfig) String() string
func (*ConsensusBlockConfig) Unmarshal ¶
func (m *ConsensusBlockConfig) Unmarshal(dAtA []byte) error
type Empty ¶
type Empty struct { }
Empty message
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type GenesisTxProposal ¶
type GenesisTxProposal struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *AppConfig `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"` }
genesis transaction proposal, contains configuration of the chain
func (*GenesisTxProposal) Descriptor ¶
func (*GenesisTxProposal) Descriptor() ([]byte, []int)
func (*GenesisTxProposal) Equal ¶
func (this *GenesisTxProposal) Equal(that interface{}) bool
func (*GenesisTxProposal) GetConfig ¶
func (m *GenesisTxProposal) GetConfig() *AppConfig
func (*GenesisTxProposal) GetName ¶
func (m *GenesisTxProposal) GetName() string
func (*GenesisTxProposal) GoString ¶
func (this *GenesisTxProposal) GoString() string
func (*GenesisTxProposal) Marshal ¶
func (m *GenesisTxProposal) Marshal() (dAtA []byte, err error)
func (*GenesisTxProposal) MarshalTo ¶
func (m *GenesisTxProposal) MarshalTo(dAtA []byte) (int, error)
func (*GenesisTxProposal) ProtoMessage ¶
func (*GenesisTxProposal) ProtoMessage()
func (*GenesisTxProposal) Reset ¶
func (m *GenesisTxProposal) Reset()
func (*GenesisTxProposal) Size ¶
func (m *GenesisTxProposal) Size() (n int)
func (*GenesisTxProposal) String ¶
func (this *GenesisTxProposal) String() string
func (*GenesisTxProposal) Unmarshal ¶
func (m *GenesisTxProposal) Unmarshal(dAtA []byte) error
type Transaction ¶
type Transaction struct {
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
}
transaction
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) Equal ¶
func (this *Transaction) Equal(that interface{}) bool
func (*Transaction) GetPayload ¶
func (m *Transaction) GetPayload() []byte
func (*Transaction) GoString ¶
func (this *Transaction) GoString() string
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (this *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
type TxResponseSync ¶
type TxResponseSync struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status TxStatus `protobuf:"varint,2,opt,name=status,proto3,enum=types.TxStatus" json:"status,omitempty"` }
func (*TxResponseSync) Descriptor ¶
func (*TxResponseSync) Descriptor() ([]byte, []int)
func (*TxResponseSync) Equal ¶
func (this *TxResponseSync) Equal(that interface{}) bool
func (*TxResponseSync) GetId ¶
func (m *TxResponseSync) GetId() string
func (*TxResponseSync) GetStatus ¶
func (m *TxResponseSync) GetStatus() TxStatus
func (*TxResponseSync) GoString ¶
func (this *TxResponseSync) GoString() string
func (*TxResponseSync) Marshal ¶
func (m *TxResponseSync) Marshal() (dAtA []byte, err error)
func (*TxResponseSync) ProtoMessage ¶
func (*TxResponseSync) ProtoMessage()
func (*TxResponseSync) Reset ¶
func (m *TxResponseSync) Reset()
func (*TxResponseSync) Size ¶
func (m *TxResponseSync) Size() (n int)
func (*TxResponseSync) String ¶
func (this *TxResponseSync) String() string
func (*TxResponseSync) Unmarshal ¶
func (m *TxResponseSync) Unmarshal(dAtA []byte) error
type Version ¶
type Version struct { Major string `protobuf:"bytes,1,opt,name=major,proto3" json:"major,omitempty"` Minor string `protobuf:"bytes,2,opt,name=minor,proto3" json:"minor,omitempty"` Build string `protobuf:"bytes,3,opt,name=build,proto3" json:"build,omitempty"` }
Version
func (*Version) Descriptor ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()