greetings

package
v0.0.0-...-95df8b3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package greetings is a generated protocol buffer package.

It is generated from these files:

greetings.proto

It has these top-level messages:

MsgRequest
MsgResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreetingsServiceServer

func RegisterGreetingsServiceServer(s *grpc.Server, srv GreetingsServiceServer)

Types

type GreetingsServiceClient

type GreetingsServiceClient interface {
	Talk(ctx context.Context, in *MsgRequest, opts ...grpc.CallOption) (GreetingsService_TalkClient, error)
}

func NewGreetingsServiceClient

func NewGreetingsServiceClient(cc *grpc.ClientConn) GreetingsServiceClient

type GreetingsServiceServer

type GreetingsServiceServer interface {
	Talk(*MsgRequest, GreetingsService_TalkServer) error
}

type GreetingsService_TalkClient

type GreetingsService_TalkClient interface {
	Recv() (*MsgResponse, error)
	grpc.ClientStream
}

type GreetingsService_TalkServer

type GreetingsService_TalkServer interface {
	Send(*MsgResponse) error
	grpc.ServerStream
}

type MsgRequest

type MsgRequest struct {
	Count int32  `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
	Msg   string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
}

func (*MsgRequest) Descriptor

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

func (*MsgRequest) GetCount

func (m *MsgRequest) GetCount() int32

func (*MsgRequest) GetMsg

func (m *MsgRequest) GetMsg() string

func (*MsgRequest) ProtoMessage

func (*MsgRequest) ProtoMessage()

func (*MsgRequest) Reset

func (m *MsgRequest) Reset()

func (*MsgRequest) String

func (m *MsgRequest) String() string

type MsgResponse

type MsgResponse struct {
	Msg     string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

func (*MsgResponse) Descriptor

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

func (*MsgResponse) GetMsg

func (m *MsgResponse) GetMsg() string

func (*MsgResponse) GetPayload

func (m *MsgResponse) GetPayload() []byte

func (*MsgResponse) ProtoMessage

func (*MsgResponse) ProtoMessage()

func (*MsgResponse) Reset

func (m *MsgResponse) Reset()

func (*MsgResponse) String

func (m *MsgResponse) String() string

Jump to

Keyboard shortcuts

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