stream

package
v1.1.2-0...-f7e2eea Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 5 Imported by: 0

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