grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

github.com/stratumn/go-indigonode/core/app/ping/grpc/ping.proto

It has these top-level messages:

PingReq
Response

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterPingServer

func RegisterPingServer(s *grpc1.Server, srv PingServer)

Types

type PingClient

type PingClient interface {
	// Pings an address and streams responses.
	Ping(ctx context.Context, in *PingReq, opts ...grpc1.CallOption) (Ping_PingClient, error)
}

func NewPingClient

func NewPingClient(cc *grpc1.ClientConn) PingClient

type PingReq

type PingReq struct {
	PeerId []byte `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	Times  uint32 `protobuf:"varint,2,opt,name=times,proto3" json:"times,omitempty"`
}

The ping request message.

func (*PingReq) Descriptor

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

func (*PingReq) GetPeerId

func (m *PingReq) GetPeerId() []byte

func (*PingReq) GetTimes

func (m *PingReq) GetTimes() uint32

func (*PingReq) Marshal

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

func (*PingReq) MarshalTo

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

func (*PingReq) ProtoMessage

func (*PingReq) ProtoMessage()

func (*PingReq) Reset

func (m *PingReq) Reset()

func (*PingReq) Size

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

func (*PingReq) String

func (m *PingReq) String() string

func (*PingReq) Unmarshal

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

type PingServer

type PingServer interface {
	// Pings an address and streams responses.
	Ping(*PingReq, Ping_PingServer) error
}

type Ping_PingClient

type Ping_PingClient interface {
	Recv() (*Response, error)
	grpc1.ClientStream
}

type Ping_PingServer

type Ping_PingServer interface {
	Send(*Response) error
	grpc1.ServerStream
}

type Response

type Response struct {
	Latency int64 `protobuf:"varint,1,opt,name=latency,proto3" json:"latency,omitempty"`
}

The response message containing the latenty.

func (*Response) Descriptor

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

func (*Response) GetLatency

func (m *Response) GetLatency() int64

func (*Response) Marshal

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

func (*Response) MarshalTo

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

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

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

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

Directories

Path Synopsis
Package mockgrpc is a generated GoMock package.
Package mockgrpc is a generated GoMock package.

Jump to

Keyboard shortcuts

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