app_homepb

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package app_homepb is a generated protocol buffer package.

It is generated from these files:

home.proto

It has these top-level messages:

HelloRequest
HelloReply
HelloStreamReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHomeServer

func RegisterHomeServer(s *grpc.Server, srv HomeServer)

Types

type HelloReply

type HelloReply struct {
	Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*HelloReply) Descriptor

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

func (*HelloReply) GetData

func (m *HelloReply) GetData() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

type HelloRequest

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

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

type HelloStreamReply

type HelloStreamReply struct {
	Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*HelloStreamReply) Descriptor

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

func (*HelloStreamReply) GetData

func (m *HelloStreamReply) GetData() string

func (*HelloStreamReply) ProtoMessage

func (*HelloStreamReply) ProtoMessage()

func (*HelloStreamReply) Reset

func (m *HelloStreamReply) Reset()

func (*HelloStreamReply) String

func (m *HelloStreamReply) String() string

type HomeClient

type HomeClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
	HelloStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Home_HelloStreamClient, error)
}

func NewHomeClient

func NewHomeClient(cc *grpc.ClientConn) HomeClient

type HomeServer

type HomeServer interface {
	Hello(context.Context, *HelloRequest) (*HelloReply, error)
	HelloStream(*HelloRequest, Home_HelloStreamServer) error
}

type Home_HelloStreamClient

type Home_HelloStreamClient interface {
	Recv() (*HelloStreamReply, error)
	grpc.ClientStream
}

type Home_HelloStreamServer

type Home_HelloStreamServer interface {
	Send(*HelloStreamReply) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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