helloproto

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package helloproto is a generated protocol buffer package.

It is generated from these files:

helloproto/hello.proto

It has these top-level messages:

HelloRequest
HelloResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

Types

type HelloClient

type HelloClient interface {
	HelloWorld(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}

func NewHelloClient

func NewHelloClient(cc *grpc.ClientConn) HelloClient

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 added in v1.3.1

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 HelloResponse

type HelloResponse struct {
	Message    string `protobuf:"bytes,1,opt,name=Message" json:"Message,omitempty"`
	ServerName string `protobuf:"bytes,2,opt,name=ServerName" json:"ServerName,omitempty"`
}

func (*HelloResponse) Descriptor

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

func (*HelloResponse) GetMessage added in v1.3.1

func (m *HelloResponse) GetMessage() string

func (*HelloResponse) GetServerName added in v1.3.1

func (m *HelloResponse) GetServerName() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) Reset

func (m *HelloResponse) Reset()

func (*HelloResponse) String

func (m *HelloResponse) String() string

type HelloServer

type HelloServer interface {
	HelloWorld(context.Context, *HelloRequest) (*HelloResponse, error)
}

type TestHelloServer

type TestHelloServer struct {
	ServerName string
}

func (*TestHelloServer) HelloWorld

func (h *TestHelloServer) HelloWorld(ctx context.Context, req *HelloRequest) (*HelloResponse, error)

Jump to

Keyboard shortcuts

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