Documentation ¶
Overview ¶
Package proto_orderer is a generated protocol buffer package.
It is generated from these files:
server.proto
It has these top-level messages:
CreateLedgerParams PutTransactionParams GetLedgerParams GetParams GetBlockParams GetRangeParams Ledger Transaction Transactions PutResult TxReceipt Block
Index ¶
- func RegisterOrdererServer(s *grpc.Server, srv OrdererServer)
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetChainName() string
- func (m *Block) GetCreatedAt() int64
- func (m *Block) GetHash() string
- func (m *Block) GetId() string
- func (m *Block) GetNumber() int64
- func (m *Block) GetPrevBlockHash() string
- func (m *Block) GetTransactions() []byte
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- type CreateLedgerParams
- func (*CreateLedgerParams) Descriptor() ([]byte, []int)
- func (m *CreateLedgerParams) GetChained() bool
- func (m *CreateLedgerParams) GetCocoonID() string
- func (m *CreateLedgerParams) GetName() string
- func (m *CreateLedgerParams) GetPublic() bool
- func (*CreateLedgerParams) ProtoMessage()
- func (m *CreateLedgerParams) Reset()
- func (m *CreateLedgerParams) String() string
- type GetBlockParams
- type GetLedgerParams
- type GetParams
- type GetRangeParams
- func (*GetRangeParams) Descriptor() ([]byte, []int)
- func (m *GetRangeParams) GetCocoonID() string
- func (m *GetRangeParams) GetEndKey() string
- func (m *GetRangeParams) GetInclusive() bool
- func (m *GetRangeParams) GetLedger() string
- func (m *GetRangeParams) GetLimit() int32
- func (m *GetRangeParams) GetOffset() int32
- func (m *GetRangeParams) GetStartKey() string
- func (*GetRangeParams) ProtoMessage()
- func (m *GetRangeParams) Reset()
- func (m *GetRangeParams) String() string
- type Ledger
- func (*Ledger) Descriptor() ([]byte, []int)
- func (m *Ledger) GetChained() bool
- func (m *Ledger) GetCreatedAt() int64
- func (m *Ledger) GetHash() string
- func (m *Ledger) GetName() string
- func (m *Ledger) GetNameInternal() string
- func (m *Ledger) GetNumber() int64
- func (m *Ledger) GetPublic() bool
- func (*Ledger) ProtoMessage()
- func (m *Ledger) Reset()
- func (m *Ledger) String() string
- type OrdererClient
- type OrdererServer
- type PutResult
- type PutTransactionParams
- func (*PutTransactionParams) Descriptor() ([]byte, []int)
- func (m *PutTransactionParams) GetCocoonID() string
- func (m *PutTransactionParams) GetLedgerName() string
- func (m *PutTransactionParams) GetRevisionID() string
- func (m *PutTransactionParams) GetTransactions() []*Transaction
- func (*PutTransactionParams) ProtoMessage()
- func (m *PutTransactionParams) Reset()
- func (m *PutTransactionParams) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetBlock() *Block
- func (m *Transaction) GetBlockId() string
- func (m *Transaction) GetCreatedAt() int64
- func (m *Transaction) GetHash() string
- func (m *Transaction) GetId() string
- func (m *Transaction) GetKey() string
- func (m *Transaction) GetKeyInternal() string
- func (m *Transaction) GetLedger() string
- func (m *Transaction) GetLedgerInternal() string
- func (m *Transaction) GetNumber() int64
- func (m *Transaction) GetRevisionTo() string
- func (m *Transaction) GetValue() string
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
- type Transactions
- type TxReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOrdererServer ¶
func RegisterOrdererServer(s *grpc.Server, srv OrdererServer)
Types ¶
type Block ¶
type Block struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` ChainName string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"` PrevBlockHash string `protobuf:"bytes,4,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"` Hash string `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` Transactions []byte `protobuf:"bytes,6,opt,name=transactions,proto3" json:"transactions,omitempty"` CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetChainName ¶
func (*Block) GetCreatedAt ¶
func (*Block) GetPrevBlockHash ¶
func (*Block) GetTransactions ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type CreateLedgerParams ¶
type CreateLedgerParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Public bool `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"` Chained bool `protobuf:"varint,4,opt,name=chained,proto3" json:"chained,omitempty"` }
func (*CreateLedgerParams) Descriptor ¶
func (*CreateLedgerParams) Descriptor() ([]byte, []int)
func (*CreateLedgerParams) GetChained ¶
func (m *CreateLedgerParams) GetChained() bool
func (*CreateLedgerParams) GetCocoonID ¶
func (m *CreateLedgerParams) GetCocoonID() string
func (*CreateLedgerParams) GetName ¶
func (m *CreateLedgerParams) GetName() string
func (*CreateLedgerParams) GetPublic ¶
func (m *CreateLedgerParams) GetPublic() bool
func (*CreateLedgerParams) ProtoMessage ¶
func (*CreateLedgerParams) ProtoMessage()
func (*CreateLedgerParams) Reset ¶
func (m *CreateLedgerParams) Reset()
func (*CreateLedgerParams) String ¶
func (m *CreateLedgerParams) String() string
type GetBlockParams ¶
type GetBlockParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` Ledger string `protobuf:"bytes,2,opt,name=ledger,proto3" json:"ledger,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` }
func (*GetBlockParams) Descriptor ¶
func (*GetBlockParams) Descriptor() ([]byte, []int)
func (*GetBlockParams) GetCocoonID ¶
func (m *GetBlockParams) GetCocoonID() string
func (*GetBlockParams) GetId ¶
func (m *GetBlockParams) GetId() string
func (*GetBlockParams) GetLedger ¶
func (m *GetBlockParams) GetLedger() string
func (*GetBlockParams) ProtoMessage ¶
func (*GetBlockParams) ProtoMessage()
func (*GetBlockParams) Reset ¶
func (m *GetBlockParams) Reset()
func (*GetBlockParams) String ¶
func (m *GetBlockParams) String() string
type GetLedgerParams ¶
type GetLedgerParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` }
func (*GetLedgerParams) Descriptor ¶
func (*GetLedgerParams) Descriptor() ([]byte, []int)
func (*GetLedgerParams) GetCocoonID ¶
func (m *GetLedgerParams) GetCocoonID() string
func (*GetLedgerParams) GetName ¶
func (m *GetLedgerParams) GetName() string
func (*GetLedgerParams) ProtoMessage ¶
func (*GetLedgerParams) ProtoMessage()
func (*GetLedgerParams) Reset ¶
func (m *GetLedgerParams) Reset()
func (*GetLedgerParams) String ¶
func (m *GetLedgerParams) String() string
type GetParams ¶
type GetParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` Ledger string `protobuf:"bytes,2,opt,name=ledger,proto3" json:"ledger,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` }
func (*GetParams) Descriptor ¶
func (*GetParams) GetCocoonID ¶
func (*GetParams) ProtoMessage ¶
func (*GetParams) ProtoMessage()
type GetRangeParams ¶
type GetRangeParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` Ledger string `protobuf:"bytes,2,opt,name=ledger,proto3" json:"ledger,omitempty"` StartKey string `protobuf:"bytes,3,opt,name=startKey,proto3" json:"startKey,omitempty"` EndKey string `protobuf:"bytes,4,opt,name=endKey,proto3" json:"endKey,omitempty"` Inclusive bool `protobuf:"varint,5,opt,name=inclusive,proto3" json:"inclusive,omitempty"` Limit int32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` Offset int32 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"` }
func (*GetRangeParams) Descriptor ¶
func (*GetRangeParams) Descriptor() ([]byte, []int)
func (*GetRangeParams) GetCocoonID ¶
func (m *GetRangeParams) GetCocoonID() string
func (*GetRangeParams) GetEndKey ¶
func (m *GetRangeParams) GetEndKey() string
func (*GetRangeParams) GetInclusive ¶
func (m *GetRangeParams) GetInclusive() bool
func (*GetRangeParams) GetLedger ¶
func (m *GetRangeParams) GetLedger() string
func (*GetRangeParams) GetLimit ¶
func (m *GetRangeParams) GetLimit() int32
func (*GetRangeParams) GetOffset ¶
func (m *GetRangeParams) GetOffset() int32
func (*GetRangeParams) GetStartKey ¶
func (m *GetRangeParams) GetStartKey() string
func (*GetRangeParams) ProtoMessage ¶
func (*GetRangeParams) ProtoMessage()
func (*GetRangeParams) Reset ¶
func (m *GetRangeParams) Reset()
func (*GetRangeParams) String ¶
func (m *GetRangeParams) String() string
type Ledger ¶
type Ledger struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` NameInternal string `protobuf:"bytes,4,opt,name=nameInternal,proto3" json:"nameInternal,omitempty"` Public bool `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"` Chained bool `protobuf:"varint,6,opt,name=chained,proto3" json:"chained,omitempty"` CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` }
func (*Ledger) Descriptor ¶
func (*Ledger) GetChained ¶
func (*Ledger) GetCreatedAt ¶
func (*Ledger) GetNameInternal ¶
func (*Ledger) ProtoMessage ¶
func (*Ledger) ProtoMessage()
type OrdererClient ¶
type OrdererClient interface { CreateLedger(ctx context.Context, in *CreateLedgerParams, opts ...grpc.CallOption) (*Ledger, error) GetLedger(ctx context.Context, in *GetLedgerParams, opts ...grpc.CallOption) (*Ledger, error) Put(ctx context.Context, in *PutTransactionParams, opts ...grpc.CallOption) (*PutResult, error) Get(ctx context.Context, in *GetParams, opts ...grpc.CallOption) (*Transaction, error) GetBlockByID(ctx context.Context, in *GetBlockParams, opts ...grpc.CallOption) (*Block, error) GetRange(ctx context.Context, in *GetRangeParams, opts ...grpc.CallOption) (*Transactions, error) }
func NewOrdererClient ¶
func NewOrdererClient(cc *grpc.ClientConn) OrdererClient
type OrdererServer ¶
type OrdererServer interface { CreateLedger(context.Context, *CreateLedgerParams) (*Ledger, error) GetLedger(context.Context, *GetLedgerParams) (*Ledger, error) Put(context.Context, *PutTransactionParams) (*PutResult, error) Get(context.Context, *GetParams) (*Transaction, error) GetBlockByID(context.Context, *GetBlockParams) (*Block, error) GetRange(context.Context, *GetRangeParams) (*Transactions, error) }
type PutResult ¶
type PutResult struct { TxReceipts []*TxReceipt `protobuf:"bytes,1,rep,name=txReceipts" json:"txReceipts,omitempty"` Block *Block `protobuf:"bytes,2,opt,name=block" json:"block,omitempty"` }
func (*PutResult) Descriptor ¶
func (*PutResult) GetTxReceipts ¶
func (*PutResult) ProtoMessage ¶
func (*PutResult) ProtoMessage()
type PutTransactionParams ¶
type PutTransactionParams struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` LedgerName string `protobuf:"bytes,2,opt,name=ledgerName,proto3" json:"ledgerName,omitempty"` Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions" json:"transactions,omitempty"` RevisionID string `protobuf:"bytes,4,opt,name=revisionID,proto3" json:"revisionID,omitempty"` }
func (*PutTransactionParams) Descriptor ¶
func (*PutTransactionParams) Descriptor() ([]byte, []int)
func (*PutTransactionParams) GetCocoonID ¶
func (m *PutTransactionParams) GetCocoonID() string
func (*PutTransactionParams) GetLedgerName ¶
func (m *PutTransactionParams) GetLedgerName() string
func (*PutTransactionParams) GetRevisionID ¶
func (m *PutTransactionParams) GetRevisionID() string
func (*PutTransactionParams) GetTransactions ¶
func (m *PutTransactionParams) GetTransactions() []*Transaction
func (*PutTransactionParams) ProtoMessage ¶
func (*PutTransactionParams) ProtoMessage()
func (*PutTransactionParams) Reset ¶
func (m *PutTransactionParams) Reset()
func (*PutTransactionParams) String ¶
func (m *PutTransactionParams) String() string
type Transaction ¶
type Transaction struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Ledger string `protobuf:"bytes,2,opt,name=ledger,proto3" json:"ledger,omitempty"` LedgerInternal string `protobuf:"bytes,3,opt,name=ledgerInternal,proto3" json:"ledgerInternal,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` KeyInternal string `protobuf:"bytes,6,opt,name=keyInternal,proto3" json:"keyInternal,omitempty"` Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` Hash string `protobuf:"bytes,8,opt,name=hash,proto3" json:"hash,omitempty"` CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` BlockId string `protobuf:"bytes,10,opt,name=blockId,proto3" json:"blockId,omitempty"` Block *Block `protobuf:"bytes,11,opt,name=block" json:"block,omitempty"` RevisionTo string `protobuf:"bytes,12,opt,name=revisionTo,proto3" json:"revisionTo,omitempty"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetBlock ¶
func (m *Transaction) GetBlock() *Block
func (*Transaction) GetBlockId ¶
func (m *Transaction) GetBlockId() string
func (*Transaction) GetCreatedAt ¶
func (m *Transaction) GetCreatedAt() int64
func (*Transaction) GetHash ¶
func (m *Transaction) GetHash() string
func (*Transaction) GetId ¶
func (m *Transaction) GetId() string
func (*Transaction) GetKey ¶
func (m *Transaction) GetKey() string
func (*Transaction) GetKeyInternal ¶
func (m *Transaction) GetKeyInternal() string
func (*Transaction) GetLedger ¶
func (m *Transaction) GetLedger() string
func (*Transaction) GetLedgerInternal ¶
func (m *Transaction) GetLedgerInternal() string
func (*Transaction) GetNumber ¶
func (m *Transaction) GetNumber() int64
func (*Transaction) GetRevisionTo ¶
func (m *Transaction) GetRevisionTo() string
func (*Transaction) GetValue ¶
func (m *Transaction) GetValue() string
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
type Transactions ¶
type Transactions struct {
Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions" json:"transactions,omitempty"`
}
func (*Transactions) Descriptor ¶
func (*Transactions) Descriptor() ([]byte, []int)
func (*Transactions) GetTransactions ¶
func (m *Transactions) GetTransactions() []*Transaction
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) Reset ¶
func (m *Transactions) Reset()
func (*Transactions) String ¶
func (m *Transactions) String() string
type TxReceipt ¶
type TxReceipt struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` }
func (*TxReceipt) Descriptor ¶
func (*TxReceipt) ProtoMessage ¶
func (*TxReceipt) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.