pb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

pingpong.proto

It has these top-level messages:

Ping
Pong

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPingPongServer

func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)

Types

type Ping

type Ping struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Ping) Descriptor

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

func (*Ping) GetMessage

func (m *Ping) GetMessage() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

type PingPongClient

type PingPongClient interface {
	PingPong(ctx context.Context, opts ...grpc.CallOption) (PingPong_PingPongClient, error)
}

func NewPingPongClient

func NewPingPongClient(cc *grpc.ClientConn) PingPongClient

type PingPongServer

type PingPongServer interface {
	PingPong(PingPong_PingPongServer) error
}

type PingPong_PingPongClient

type PingPong_PingPongClient interface {
	Send(*Ping) error
	Recv() (*Pong, error)
	grpc.ClientStream
}

type PingPong_PingPongServer

type PingPong_PingPongServer interface {
	Send(*Pong) error
	Recv() (*Ping, error)
	grpc.ServerStream
}

type Pong

type Pong struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*Pong) Descriptor

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

func (*Pong) GetMessage

func (m *Pong) GetMessage() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

Jump to

Keyboard shortcuts

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