Documentation ¶
Index ¶
- Variables
- func RegisterPeerManagerServer(s *grpc.Server, srv PeerManagerServer)
- type ExecResponse
- func (*ExecResponse) Descriptor() ([]byte, []int)
- func (m *ExecResponse) GetResult() []byte
- func (m *ExecResponse) GetSign() string
- func (*ExecResponse) ProtoMessage()
- func (m *ExecResponse) Reset()
- func (m *ExecResponse) String() string
- func (m *ExecResponse) XXX_DiscardUnknown()
- func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecResponse) XXX_Merge(src proto.Message)
- func (m *ExecResponse) XXX_Size() int
- func (m *ExecResponse) XXX_Unmarshal(b []byte) error
- type Executetx
- func (*Executetx) Descriptor() ([]byte, []int)
- func (m *Executetx) GetArgs() []string
- func (m *Executetx) GetIType() Executetx_InvokerType
- func (m *Executetx) GetInvokerId() string
- func (m *Executetx) GetTx() string
- func (*Executetx) ProtoMessage()
- func (m *Executetx) Reset()
- func (m *Executetx) String() string
- func (m *Executetx) XXX_DiscardUnknown()
- func (m *Executetx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Executetx) XXX_Merge(src proto.Message)
- func (m *Executetx) XXX_Size() int
- func (m *Executetx) XXX_Unmarshal(b []byte) error
- type Executetx_InvokerType
- type PeerManagerClient
- type PeerManagerServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Executetx_InvokerType_name = map[int32]string{
0: "CLIENT",
1: "PEER",
}
View Source
var Executetx_InvokerType_value = map[string]int32{
"CLIENT": 0,
"PEER": 1,
}
Functions ¶
func RegisterPeerManagerServer ¶
func RegisterPeerManagerServer(s *grpc.Server, srv PeerManagerServer)
Types ¶
type ExecResponse ¶
type ExecResponse struct { Sign string `protobuf:"bytes,1,opt,name=Sign,proto3" json:"Sign,omitempty"` Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExecResponse) Descriptor ¶
func (*ExecResponse) Descriptor() ([]byte, []int)
func (*ExecResponse) GetResult ¶
func (m *ExecResponse) GetResult() []byte
func (*ExecResponse) GetSign ¶
func (m *ExecResponse) GetSign() string
func (*ExecResponse) ProtoMessage ¶
func (*ExecResponse) ProtoMessage()
func (*ExecResponse) Reset ¶
func (m *ExecResponse) Reset()
func (*ExecResponse) String ¶
func (m *ExecResponse) String() string
func (*ExecResponse) XXX_DiscardUnknown ¶
func (m *ExecResponse) XXX_DiscardUnknown()
func (*ExecResponse) XXX_Marshal ¶
func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecResponse) XXX_Merge ¶
func (m *ExecResponse) XXX_Merge(src proto.Message)
func (*ExecResponse) XXX_Size ¶
func (m *ExecResponse) XXX_Size() int
func (*ExecResponse) XXX_Unmarshal ¶
func (m *ExecResponse) XXX_Unmarshal(b []byte) error
type Executetx ¶
type Executetx struct { Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` Args []string `protobuf:"bytes,2,rep,name=Args,proto3" json:"Args,omitempty"` InvokerId string `protobuf:"bytes,3,opt,name=invokerId,proto3" json:"invokerId,omitempty"` IType Executetx_InvokerType `protobuf:"varint,4,opt,name=iType,proto3,enum=core.Executetx_InvokerType" json:"iType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Executetx) Descriptor ¶
func (*Executetx) GetIType ¶
func (m *Executetx) GetIType() Executetx_InvokerType
func (*Executetx) GetInvokerId ¶
func (*Executetx) ProtoMessage ¶
func (*Executetx) ProtoMessage()
func (*Executetx) XXX_DiscardUnknown ¶
func (m *Executetx) XXX_DiscardUnknown()
func (*Executetx) XXX_Marshal ¶
func (*Executetx) XXX_Unmarshal ¶
type Executetx_InvokerType ¶
type Executetx_InvokerType int32
const ( Executetx_CLIENT Executetx_InvokerType = 0 Executetx_PEER Executetx_InvokerType = 1 )
func (Executetx_InvokerType) EnumDescriptor ¶
func (Executetx_InvokerType) EnumDescriptor() ([]byte, []int)
func (Executetx_InvokerType) String ¶
func (x Executetx_InvokerType) String() string
type PeerManagerClient ¶
type PeerManagerClient interface { InitContract(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ExecResponse, error) ExecuteTransaction(ctx context.Context, in *Executetx, opts ...grpc.CallOption) (*ExecResponse, error) ValidateBlock(ctx context.Context, in *gossip.Block, opts ...grpc.CallOption) (*empty.Empty, error) }
PeerManagerClient is the client API for PeerManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPeerManagerClient ¶
func NewPeerManagerClient(cc *grpc.ClientConn) PeerManagerClient
type PeerManagerServer ¶
type PeerManagerServer interface { InitContract(context.Context, *empty.Empty) (*ExecResponse, error) ExecuteTransaction(context.Context, *Executetx) (*ExecResponse, error) ValidateBlock(context.Context, *gossip.Block) (*empty.Empty, error) }
PeerManagerServer is the server API for PeerManager service.
Click to show internal directories.
Click to hide internal directories.