Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChaincodeMessage_Type_name = map[int32]string{
	0:  "UNDEFINED",
	1:  "REGISTER",
	2:  "REGISTERED",
	3:  "INIT",
	4:  "TRANSACTION",
	5:  "GET_STATE",
	6:  "GET_STATES",
	7:  "GET_STATE_BY_RANGE",
	8:  "PUT_STATE",
	9:  "PUT_STATES",
	10: "TRANSFER",
	11: "GET_BALANCE",
	12: "RESPONSE",
	13: "COMPLETED",
	14: "ERROR",
	15: "COMMIT",
	16: "COMMIT_COMPLETED",
	17: "COMMIT_ERROR",
}
View Source
var ChaincodeMessage_Type_value = map[string]int32{
	"UNDEFINED":          0,
	"REGISTER":           1,
	"REGISTERED":         2,
	"INIT":               3,
	"TRANSACTION":        4,
	"GET_STATE":          5,
	"GET_STATES":         6,
	"GET_STATE_BY_RANGE": 7,
	"PUT_STATE":          8,
	"PUT_STATES":         9,
	"TRANSFER":           10,
	"GET_BALANCE":        11,
	"RESPONSE":           12,
	"COMPLETED":          13,
	"ERROR":              14,
	"COMMIT":             15,
	"COMMIT_COMPLETED":   16,
	"COMMIT_ERROR":       17,
}

Functions

func RegisterChaincodeSupportServer

func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)

Types

type ChaincodeInput

type ChaincodeInput struct {
	Args                 [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChaincodeInput) Descriptor

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

func (*ChaincodeInput) GetArgs

func (m *ChaincodeInput) GetArgs() [][]byte

func (*ChaincodeInput) ProtoMessage

func (*ChaincodeInput) ProtoMessage()

func (*ChaincodeInput) Reset

func (m *ChaincodeInput) Reset()

func (*ChaincodeInput) String

func (m *ChaincodeInput) String() string

func (*ChaincodeInput) XXX_DiscardUnknown

func (m *ChaincodeInput) XXX_DiscardUnknown()

func (*ChaincodeInput) XXX_Marshal

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

func (*ChaincodeInput) XXX_Merge

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

func (*ChaincodeInput) XXX_Size

func (m *ChaincodeInput) XXX_Size() int

func (*ChaincodeInput) XXX_Unmarshal

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

type ChaincodeMessage

type ChaincodeMessage struct {
	Type                 ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"`
	Txid                 []byte                `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	From                 []byte                `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	Payload              []byte                `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ChaincodeMessage) Descriptor

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

func (*ChaincodeMessage) GetFrom

func (m *ChaincodeMessage) GetFrom() []byte

func (*ChaincodeMessage) GetPayload

func (m *ChaincodeMessage) GetPayload() []byte

func (*ChaincodeMessage) GetTxid

func (m *ChaincodeMessage) GetTxid() []byte

func (*ChaincodeMessage) GetType

func (*ChaincodeMessage) ProtoMessage

func (*ChaincodeMessage) ProtoMessage()

func (*ChaincodeMessage) Reset

func (m *ChaincodeMessage) Reset()

func (*ChaincodeMessage) String

func (m *ChaincodeMessage) String() string

func (*ChaincodeMessage) XXX_DiscardUnknown

func (m *ChaincodeMessage) XXX_DiscardUnknown()

func (*ChaincodeMessage) XXX_Marshal

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

func (*ChaincodeMessage) XXX_Merge

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

func (*ChaincodeMessage) XXX_Size

func (m *ChaincodeMessage) XXX_Size() int

func (*ChaincodeMessage) XXX_Unmarshal

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

type ChaincodeMessage_Type

type ChaincodeMessage_Type int32
const (
	ChaincodeMessage_UNDEFINED          ChaincodeMessage_Type = 0
	ChaincodeMessage_REGISTER           ChaincodeMessage_Type = 1
	ChaincodeMessage_REGISTERED         ChaincodeMessage_Type = 2
	ChaincodeMessage_INIT               ChaincodeMessage_Type = 3
	ChaincodeMessage_TRANSACTION        ChaincodeMessage_Type = 4
	ChaincodeMessage_GET_STATE          ChaincodeMessage_Type = 5
	ChaincodeMessage_GET_STATES         ChaincodeMessage_Type = 6
	ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 7
	ChaincodeMessage_PUT_STATE          ChaincodeMessage_Type = 8
	ChaincodeMessage_PUT_STATES         ChaincodeMessage_Type = 9
	ChaincodeMessage_TRANSFER           ChaincodeMessage_Type = 10
	ChaincodeMessage_GET_BALANCE        ChaincodeMessage_Type = 11
	ChaincodeMessage_RESPONSE           ChaincodeMessage_Type = 12
	ChaincodeMessage_COMPLETED          ChaincodeMessage_Type = 13
	ChaincodeMessage_ERROR              ChaincodeMessage_Type = 14
	ChaincodeMessage_COMMIT             ChaincodeMessage_Type = 15
	ChaincodeMessage_COMMIT_COMPLETED   ChaincodeMessage_Type = 16
	ChaincodeMessage_COMMIT_ERROR       ChaincodeMessage_Type = 17
)

func (ChaincodeMessage_Type) EnumDescriptor

func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)

func (ChaincodeMessage_Type) String

func (x ChaincodeMessage_Type) String() string

type ChaincodeSupportClient

type ChaincodeSupportClient interface {
	Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error)
}

    ChaincodeSupportClient is the client API for ChaincodeSupport service.

    For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

    func NewChaincodeSupportClient

    func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient

    type ChaincodeSupportServer

    type ChaincodeSupportServer interface {
    	Register(ChaincodeSupport_RegisterServer) error
    }

      ChaincodeSupportServer is the server API for ChaincodeSupport service.

      type ChaincodeSupport_RegisterClient

      type ChaincodeSupport_RegisterClient interface {
      	Send(*ChaincodeMessage) error
      	Recv() (*ChaincodeMessage, error)
      	grpc.ClientStream
      }

      type ChaincodeSupport_RegisterServer

      type ChaincodeSupport_RegisterServer interface {
      	Send(*ChaincodeMessage) error
      	Recv() (*ChaincodeMessage, error)
      	grpc.ServerStream
      }

      type GetStateByRange

      type GetStateByRange struct {
      	StartKey             string   `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"`
      	EndKey               string   `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*GetStateByRange) Descriptor

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

      func (*GetStateByRange) GetEndKey

      func (m *GetStateByRange) GetEndKey() string

      func (*GetStateByRange) GetStartKey

      func (m *GetStateByRange) GetStartKey() string

      func (*GetStateByRange) ProtoMessage

      func (*GetStateByRange) ProtoMessage()

      func (*GetStateByRange) Reset

      func (m *GetStateByRange) Reset()

      func (*GetStateByRange) String

      func (m *GetStateByRange) String() string

      func (*GetStateByRange) XXX_DiscardUnknown

      func (m *GetStateByRange) XXX_DiscardUnknown()

      func (*GetStateByRange) XXX_Marshal

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

      func (*GetStateByRange) XXX_Merge

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

      func (*GetStateByRange) XXX_Size

      func (m *GetStateByRange) XXX_Size() int

      func (*GetStateByRange) XXX_Unmarshal

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

      type GetStates

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

      func (*GetStates) Descriptor

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

      func (*GetStates) GetKeys

      func (m *GetStates) GetKeys() []string

      func (*GetStates) ProtoMessage

      func (*GetStates) ProtoMessage()

      func (*GetStates) Reset

      func (m *GetStates) Reset()

      func (*GetStates) String

      func (m *GetStates) String() string

      func (*GetStates) XXX_DiscardUnknown

      func (m *GetStates) XXX_DiscardUnknown()

      func (*GetStates) XXX_Marshal

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

      func (*GetStates) XXX_Merge

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

      func (*GetStates) XXX_Size

      func (m *GetStates) XXX_Size() int

      func (*GetStates) XXX_Unmarshal

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

      type KV

      type KV struct {
      	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
      	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*KV) Descriptor

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

      func (*KV) GetKey

      func (m *KV) GetKey() string

      func (*KV) GetValue

      func (m *KV) GetValue() []byte

      func (*KV) ProtoMessage

      func (*KV) ProtoMessage()

      func (*KV) Reset

      func (m *KV) Reset()

      func (*KV) String

      func (m *KV) String() string

      func (*KV) XXX_DiscardUnknown

      func (m *KV) XXX_DiscardUnknown()

      func (*KV) XXX_Marshal

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

      func (*KV) XXX_Merge

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

      func (*KV) XXX_Size

      func (m *KV) XXX_Size() int

      func (*KV) XXX_Unmarshal

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

      type PutState

      type PutState struct {
      	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
      	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
      	IfNotExist           bool     `protobuf:"varint,3,opt,name=if_not_exist,json=ifNotExist,proto3" json:"if_not_exist,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*PutState) Descriptor

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

      func (*PutState) GetIfNotExist

      func (m *PutState) GetIfNotExist() bool

      func (*PutState) GetKey

      func (m *PutState) GetKey() string

      func (*PutState) GetValue

      func (m *PutState) GetValue() []byte

      func (*PutState) ProtoMessage

      func (*PutState) ProtoMessage()

      func (*PutState) Reset

      func (m *PutState) Reset()

      func (*PutState) String

      func (m *PutState) String() string

      func (*PutState) XXX_DiscardUnknown

      func (m *PutState) XXX_DiscardUnknown()

      func (*PutState) XXX_Marshal

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

      func (*PutState) XXX_Merge

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

      func (*PutState) XXX_Size

      func (m *PutState) XXX_Size() int

      func (*PutState) XXX_Unmarshal

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

      type PutStates

      type PutStates struct {
      	Kvs                  []*KV    `protobuf:"bytes,1,rep,name=kvs,proto3" json:"kvs,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*PutStates) Descriptor

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

      func (*PutStates) GetKvs

      func (m *PutStates) GetKvs() []*KV

      func (*PutStates) ProtoMessage

      func (*PutStates) ProtoMessage()

      func (*PutStates) Reset

      func (m *PutStates) Reset()

      func (*PutStates) String

      func (m *PutStates) String() string

      func (*PutStates) XXX_DiscardUnknown

      func (m *PutStates) XXX_DiscardUnknown()

      func (*PutStates) XXX_Marshal

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

      func (*PutStates) XXX_Merge

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

      func (*PutStates) XXX_Size

      func (m *PutStates) XXX_Size() int

      func (*PutStates) XXX_Unmarshal

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

      type QueryResponse

      type QueryResponse struct {
      	Kvs                  []*KV    `protobuf:"bytes,1,rep,name=kvs,proto3" json:"kvs,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*QueryResponse) Descriptor

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

      func (*QueryResponse) GetKvs

      func (m *QueryResponse) GetKvs() []*KV

      func (*QueryResponse) ProtoMessage

      func (*QueryResponse) ProtoMessage()

      func (*QueryResponse) Reset

      func (m *QueryResponse) Reset()

      func (*QueryResponse) String

      func (m *QueryResponse) String() string

      func (*QueryResponse) XXX_DiscardUnknown

      func (m *QueryResponse) XXX_DiscardUnknown()

      func (*QueryResponse) XXX_Marshal

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

      func (*QueryResponse) XXX_Merge

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

      func (*QueryResponse) XXX_Size

      func (m *QueryResponse) XXX_Size() int

      func (*QueryResponse) XXX_Unmarshal

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

      type RWSet

      type RWSet struct {
      	Reads                []*Read  `protobuf:"bytes,1,rep,name=reads,proto3" json:"reads,omitempty"`
      	Writes               []*Write `protobuf:"bytes,2,rep,name=writes,proto3" json:"writes,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*RWSet) Descriptor

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

      func (*RWSet) GetReads

      func (m *RWSet) GetReads() []*Read

      func (*RWSet) GetWrites

      func (m *RWSet) GetWrites() []*Write

      func (*RWSet) ProtoMessage

      func (*RWSet) ProtoMessage()

      func (*RWSet) Reset

      func (m *RWSet) Reset()

      func (*RWSet) String

      func (m *RWSet) String() string

      func (*RWSet) XXX_DiscardUnknown

      func (m *RWSet) XXX_DiscardUnknown()

      func (*RWSet) XXX_Marshal

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

      func (*RWSet) XXX_Merge

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

      func (*RWSet) XXX_Size

      func (m *RWSet) XXX_Size() int

      func (*RWSet) XXX_Unmarshal

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

      type Read

      type Read struct {
      	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
      	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*Read) Descriptor

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

      func (*Read) GetKey

      func (m *Read) GetKey() []byte

      func (*Read) GetValue

      func (m *Read) GetValue() []byte

      func (*Read) ProtoMessage

      func (*Read) ProtoMessage()

      func (*Read) Reset

      func (m *Read) Reset()

      func (*Read) String

      func (m *Read) String() string

      func (*Read) XXX_DiscardUnknown

      func (m *Read) XXX_DiscardUnknown()

      func (*Read) XXX_Marshal

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

      func (*Read) XXX_Merge

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

      func (*Read) XXX_Size

      func (m *Read) XXX_Size() int

      func (*Read) XXX_Unmarshal

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

      type Transfer

      type Transfer struct {
      	From                 []byte   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
      	To                   []byte   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
      	Coin                 string   `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
      	XXX_NoUnkeyedLiteral struct{} `json:"-"`
      	XXX_unrecognized     []byte   `json:"-"`
      	XXX_sizecache        int32    `json:"-"`
      }

      func (*Transfer) Descriptor

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

      func (*Transfer) GetCoin

      func (m *Transfer) GetCoin() string

      func (*Transfer) GetFrom

      func (m *Transfer) GetFrom() []byte

      func (*Transfer) GetTo

      func (m *Transfer) GetTo() []byte

      func (*Transfer) ProtoMessage

      func (*Transfer) ProtoMessage()

      func (*Transfer) Reset

      func (m *Transfer) Reset()

      func (*Transfer) String

      func (m *Transfer) String() string

      func (*Transfer) XXX_DiscardUnknown

      func (m *Transfer) XXX_DiscardUnknown()

      func (*Transfer) XXX_Marshal

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

      func (*Transfer) XXX_Merge

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

      func (*Transfer) XXX_Size

      func (m *Transfer) XXX_Size() int

      func (*Transfer) XXX_Unmarshal

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

      type UnimplementedChaincodeSupportServer

      type UnimplementedChaincodeSupportServer struct {
      }

        UnimplementedChaincodeSupportServer can be embedded to have forward compatible implementations.

        func (*UnimplementedChaincodeSupportServer) Register

        type Write

        type Write struct {
        	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
        	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
        	XXX_NoUnkeyedLiteral struct{} `json:"-"`
        	XXX_unrecognized     []byte   `json:"-"`
        	XXX_sizecache        int32    `json:"-"`
        }

        func (*Write) Descriptor

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

        func (*Write) GetKey

        func (m *Write) GetKey() []byte

        func (*Write) GetValue

        func (m *Write) GetValue() []byte

        func (*Write) ProtoMessage

        func (*Write) ProtoMessage()

        func (*Write) Reset

        func (m *Write) Reset()

        func (*Write) String

        func (m *Write) String() string

        func (*Write) XXX_DiscardUnknown

        func (m *Write) XXX_DiscardUnknown()

        func (*Write) XXX_Marshal

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

        func (*Write) XXX_Merge

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

        func (*Write) XXX_Size

        func (m *Write) XXX_Size() int

        func (*Write) XXX_Unmarshal

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