core_grpc

package
v0.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBroadcastAPIServer

func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer)

func StartGRPCServer

func StartGRPCServer(protoAddr string) (net.Listener, error)

Start the grpcServer in a go routine

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

Start the client by dialing the server

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 added in v0.13.0

type RequestPing struct {
}

func (*RequestPing) Descriptor added in v0.13.0

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

func (*RequestPing) ProtoMessage added in v0.13.0

func (*RequestPing) ProtoMessage()

func (*RequestPing) Reset added in v0.13.0

func (m *RequestPing) Reset()

func (*RequestPing) String added in v0.13.0

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 added in v0.13.0

type ResponsePing struct {
}

func (*ResponsePing) Descriptor added in v0.13.0

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

func (*ResponsePing) ProtoMessage added in v0.13.0

func (*ResponsePing) ProtoMessage()

func (*ResponsePing) Reset added in v0.13.0

func (m *ResponsePing) Reset()

func (*ResponsePing) String added in v0.13.0

func (m *ResponsePing) String() string

Jump to

Keyboard shortcuts

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