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:
RequestPing RequestBroadcastTx ResponsePing ResponseBroadcastTx
Index ¶
- func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer)
- func StartGRPCServer(protoAddr string, config Config) (net.Listener, error)
- type BroadcastAPIClient
- type BroadcastAPIServer
- type Config
- type RequestBroadcastTx
- type RequestPing
- 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
- type ResponsePing
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 { Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error) 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
StartGRPCClient dials the gRPC server using protoAddr and returns a new BroadcastAPIClient.
type BroadcastAPIServer ¶
type BroadcastAPIServer interface { Ping(context.Context, *RequestPing) (*ResponsePing, error) 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 RequestPing ¶
type RequestPing struct { }
func (*RequestPing) Descriptor ¶
func (*RequestPing) Descriptor() ([]byte, []int)
func (*RequestPing) ProtoMessage ¶
func (*RequestPing) ProtoMessage()
func (*RequestPing) Reset ¶
func (m *RequestPing) Reset()
func (*RequestPing) String ¶
func (m *RequestPing) 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
type ResponsePing ¶
type ResponsePing struct { }
func (*ResponsePing) Descriptor ¶
func (*ResponsePing) Descriptor() ([]byte, []int)
func (*ResponsePing) ProtoMessage ¶
func (*ResponsePing) ProtoMessage()
func (*ResponsePing) Reset ¶
func (m *ResponsePing) Reset()
func (*ResponsePing) String ¶
func (m *ResponsePing) String() string
Click to show internal directories.
Click to hide internal directories.