Documentation ¶
Overview ¶
Package core_grpc is a generated protocol buffer package.
It is generated from these files:
types.proto
It has these top-level messages:
RequestBroadcastTx ResponseBroadcastTx
Index ¶
- func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer)
- func StartGRPCServer(protoAddr string) (net.Listener, error)
- type BroadcastAPIClient
- type BroadcastAPIServer
- type RequestBroadcastTx
- type ResponseBroadcastTx
- func (*ResponseBroadcastTx) Descriptor() ([]byte, []int)
- func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx
- func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx
- func (*ResponseBroadcastTx) ProtoMessage()
- func (m *ResponseBroadcastTx) Reset()
- func (m *ResponseBroadcastTx) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBroadcastAPIServer ¶
func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer)
Types ¶
type BroadcastAPIClient ¶
type BroadcastAPIClient interface {
BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error)
}
func NewBroadcastAPIClient ¶
func NewBroadcastAPIClient(cc *grpc.ClientConn) BroadcastAPIClient
func StartGRPCClient ¶
func StartGRPCClient(protoAddr string) BroadcastAPIClient
Start the client by dialing the server
type BroadcastAPIServer ¶
type BroadcastAPIServer interface {
BroadcastTx(context.Context, *RequestBroadcastTx) (*ResponseBroadcastTx, error)
}
type RequestBroadcastTx ¶
type RequestBroadcastTx struct {
Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}
func (*RequestBroadcastTx) Descriptor ¶
func (*RequestBroadcastTx) Descriptor() ([]byte, []int)
func (*RequestBroadcastTx) GetTx ¶
func (m *RequestBroadcastTx) GetTx() []byte
func (*RequestBroadcastTx) ProtoMessage ¶
func (*RequestBroadcastTx) ProtoMessage()
func (*RequestBroadcastTx) Reset ¶
func (m *RequestBroadcastTx) Reset()
func (*RequestBroadcastTx) String ¶
func (m *RequestBroadcastTx) String() string
type ResponseBroadcastTx ¶
type ResponseBroadcastTx struct { CheckTx *types.ResponseCheckTx `protobuf:"bytes,1,opt,name=check_tx,json=checkTx" json:"check_tx,omitempty"` DeliverTx *types.ResponseDeliverTx `protobuf:"bytes,2,opt,name=deliver_tx,json=deliverTx" json:"deliver_tx,omitempty"` }
func (*ResponseBroadcastTx) Descriptor ¶
func (*ResponseBroadcastTx) Descriptor() ([]byte, []int)
func (*ResponseBroadcastTx) GetCheckTx ¶
func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx
func (*ResponseBroadcastTx) GetDeliverTx ¶
func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx
func (*ResponseBroadcastTx) ProtoMessage ¶
func (*ResponseBroadcastTx) ProtoMessage()
func (*ResponseBroadcastTx) Reset ¶
func (m *ResponseBroadcastTx) Reset()
func (*ResponseBroadcastTx) String ¶
func (m *ResponseBroadcastTx) String() string
Click to show internal directories.
Click to hide internal directories.