proto_orderer

package
v0.0.0-...-7b2e207 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: AGPL-3.0 Imports: 5 Imported by: 3

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

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) Descriptor() ([]byte, []int)

func (*Block) GetChainName

func (m *Block) GetChainName() string

func (*Block) GetCreatedAt

func (m *Block) GetCreatedAt() int64

func (*Block) GetHash

func (m *Block) GetHash() string

func (*Block) GetId

func (m *Block) GetId() string

func (*Block) GetNumber

func (m *Block) GetNumber() int64

func (*Block) GetPrevBlockHash

func (m *Block) GetPrevBlockHash() string

func (*Block) GetTransactions

func (m *Block) GetTransactions() []byte

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

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) Descriptor() ([]byte, []int)

func (*GetParams) GetCocoonID

func (m *GetParams) GetCocoonID() string

func (*GetParams) GetId

func (m *GetParams) GetId() string

func (*GetParams) GetKey

func (m *GetParams) GetKey() string

func (*GetParams) GetLedger

func (m *GetParams) GetLedger() string

func (*GetParams) ProtoMessage

func (*GetParams) ProtoMessage()

func (*GetParams) Reset

func (m *GetParams) Reset()

func (*GetParams) String

func (m *GetParams) String() string

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) Descriptor() ([]byte, []int)

func (*Ledger) GetChained

func (m *Ledger) GetChained() bool

func (*Ledger) GetCreatedAt

func (m *Ledger) GetCreatedAt() int64

func (*Ledger) GetHash

func (m *Ledger) GetHash() string

func (*Ledger) GetName

func (m *Ledger) GetName() string

func (*Ledger) GetNameInternal

func (m *Ledger) GetNameInternal() string

func (*Ledger) GetNumber

func (m *Ledger) GetNumber() int64

func (*Ledger) GetPublic

func (m *Ledger) GetPublic() bool

func (*Ledger) ProtoMessage

func (*Ledger) ProtoMessage()

func (*Ledger) Reset

func (m *Ledger) Reset()

func (*Ledger) String

func (m *Ledger) String() string

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 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) Descriptor() ([]byte, []int)

func (*PutResult) GetBlock

func (m *PutResult) GetBlock() *Block

func (*PutResult) GetTxReceipts

func (m *PutResult) GetTxReceipts() []*TxReceipt

func (*PutResult) ProtoMessage

func (*PutResult) ProtoMessage()

func (*PutResult) Reset

func (m *PutResult) Reset()

func (*PutResult) String

func (m *PutResult) String() string

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) Descriptor() ([]byte, []int)

func (*TxReceipt) GetErr

func (m *TxReceipt) GetErr() string

func (*TxReceipt) GetID

func (m *TxReceipt) GetID() string

func (*TxReceipt) ProtoMessage

func (*TxReceipt) ProtoMessage()

func (*TxReceipt) Reset

func (m *TxReceipt) Reset()

func (*TxReceipt) String

func (m *TxReceipt) String() string

Jump to

Keyboard shortcuts

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