core_grpc

package
v0.22.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package core_grpc is a generated protocol buffer package.

It is generated from these files:
	rpc/grpc/types.proto

It has these top-level messages:
	RequestPing
	RequestBroadcastTx
	ResponsePing
	ResponseBroadcastTx

nolint

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterBroadcastAPIServer

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

func StartGRPCServer

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

StartGRPCServer starts a new gRPC BroadcastAPIServer, listening on protoAddr, in a goroutine. Returns a listener and an error, if it fails to parse an address.

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 Config

type Config struct {
	MaxOpenConnections int
}

Config is an gRPC server configuration.

type RequestBroadcastTx

type RequestBroadcastTx struct {
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
}

func NewPopulatedRequestBroadcastTx

func NewPopulatedRequestBroadcastTx(r randyTypes, easy bool) *RequestBroadcastTx

func (*RequestBroadcastTx) Descriptor

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

func (*RequestBroadcastTx) Equal

func (this *RequestBroadcastTx) Equal(that interface{}) bool

func (*RequestBroadcastTx) GetTx

func (m *RequestBroadcastTx) GetTx() []byte

func (*RequestBroadcastTx) Marshal

func (m *RequestBroadcastTx) Marshal() (dAtA []byte, err error)

func (*RequestBroadcastTx) MarshalTo

func (m *RequestBroadcastTx) MarshalTo(dAtA []byte) (int, error)

func (*RequestBroadcastTx) ProtoMessage

func (*RequestBroadcastTx) ProtoMessage()

func (*RequestBroadcastTx) Reset

func (m *RequestBroadcastTx) Reset()

func (*RequestBroadcastTx) Size

func (m *RequestBroadcastTx) Size() (n int)

func (*RequestBroadcastTx) String

func (m *RequestBroadcastTx) String() string

func (*RequestBroadcastTx) Unmarshal

func (m *RequestBroadcastTx) Unmarshal(dAtA []byte) error

type RequestPing

type RequestPing struct {
}

func NewPopulatedRequestPing

func NewPopulatedRequestPing(r randyTypes, easy bool) *RequestPing

func (*RequestPing) Descriptor

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

func (*RequestPing) Equal

func (this *RequestPing) Equal(that interface{}) bool

func (*RequestPing) Marshal

func (m *RequestPing) Marshal() (dAtA []byte, err error)

func (*RequestPing) MarshalTo

func (m *RequestPing) MarshalTo(dAtA []byte) (int, error)

func (*RequestPing) ProtoMessage

func (*RequestPing) ProtoMessage()

func (*RequestPing) Reset

func (m *RequestPing) Reset()

func (*RequestPing) Size

func (m *RequestPing) Size() (n int)

func (*RequestPing) String

func (m *RequestPing) String() string

func (*RequestPing) Unmarshal

func (m *RequestPing) Unmarshal(dAtA []byte) error

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 NewPopulatedResponseBroadcastTx

func NewPopulatedResponseBroadcastTx(r randyTypes, easy bool) *ResponseBroadcastTx

func (*ResponseBroadcastTx) Descriptor

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

func (*ResponseBroadcastTx) Equal

func (this *ResponseBroadcastTx) Equal(that interface{}) bool

func (*ResponseBroadcastTx) GetCheckTx

func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx

func (*ResponseBroadcastTx) GetDeliverTx

func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx

func (*ResponseBroadcastTx) Marshal

func (m *ResponseBroadcastTx) Marshal() (dAtA []byte, err error)

func (*ResponseBroadcastTx) MarshalTo

func (m *ResponseBroadcastTx) MarshalTo(dAtA []byte) (int, error)

func (*ResponseBroadcastTx) ProtoMessage

func (*ResponseBroadcastTx) ProtoMessage()

func (*ResponseBroadcastTx) Reset

func (m *ResponseBroadcastTx) Reset()

func (*ResponseBroadcastTx) Size

func (m *ResponseBroadcastTx) Size() (n int)

func (*ResponseBroadcastTx) String

func (m *ResponseBroadcastTx) String() string

func (*ResponseBroadcastTx) Unmarshal

func (m *ResponseBroadcastTx) Unmarshal(dAtA []byte) error

type ResponsePing

type ResponsePing struct {
}

func NewPopulatedResponsePing

func NewPopulatedResponsePing(r randyTypes, easy bool) *ResponsePing

func (*ResponsePing) Descriptor

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

func (*ResponsePing) Equal

func (this *ResponsePing) Equal(that interface{}) bool

func (*ResponsePing) Marshal

func (m *ResponsePing) Marshal() (dAtA []byte, err error)

func (*ResponsePing) MarshalTo

func (m *ResponsePing) MarshalTo(dAtA []byte) (int, error)

func (*ResponsePing) ProtoMessage

func (*ResponsePing) ProtoMessage()

func (*ResponsePing) Reset

func (m *ResponsePing) Reset()

func (*ResponsePing) Size

func (m *ResponsePing) Size() (n int)

func (*ResponsePing) String

func (m *ResponsePing) String() string

func (*ResponsePing) Unmarshal

func (m *ResponsePing) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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