stream

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 5 Imported by: 1 module, 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 stream is a generated protocol buffer package.

It is generated from these files:

greet.proto

It has these top-level messages:

StreamReq
StreamResp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStreamGreeterServer

func RegisterStreamGreeterServer(s *grpc.Server, srv StreamGreeterServer)

Types

type StreamGreeterClient

type StreamGreeterClient interface {
	Greet(ctx context.Context, opts ...grpc.CallOption) (StreamGreeter_GreetClient, error)
}

func NewStreamGreeterClient

func NewStreamGreeterClient(cc *grpc.ClientConn) StreamGreeterClient

type StreamGreeterServer

type StreamGreeterServer interface {
	Greet(StreamGreeter_GreetServer) error
}

type StreamGreeter_GreetClient

type StreamGreeter_GreetClient interface {
	Send(*StreamReq) error
	Recv() (*StreamResp, error)
	grpc.ClientStream
}

type StreamGreeter_GreetServer

type StreamGreeter_GreetServer interface {
	Send(*StreamResp) error
	Recv() (*StreamReq, error)
	grpc.ServerStream
}

type StreamReq

type StreamReq struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*StreamReq) Descriptor

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

func (*StreamReq) GetName

func (m *StreamReq) GetName() string

func (*StreamReq) ProtoMessage

func (*StreamReq) ProtoMessage()

func (*StreamReq) Reset

func (m *StreamReq) Reset()

func (*StreamReq) String

func (m *StreamReq) String() string

type StreamResp

type StreamResp struct {
	Greet string `protobuf:"bytes,1,opt,name=greet" json:"greet,omitempty"`
}

func (*StreamResp) Descriptor

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

func (*StreamResp) GetGreet

func (m *StreamResp) GetGreet() string

func (*StreamResp) ProtoMessage

func (*StreamResp) ProtoMessage()

func (*StreamResp) Reset

func (m *StreamResp) Reset()

func (*StreamResp) String

func (m *StreamResp) String() string

Jump to

Keyboard shortcuts

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