go_micro_srv_greeter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

Package go_micro_srv_greeter is a generated protocol buffer package.

It is generated from these files:

github.com/micro/go-grpc/examples/greeter/server/proto/hello/hello.proto

It has these top-level messages:

Request
Response

Package go_micro_srv_greeter is a generated protocol buffer package.

It is generated from these files:

github.com/micro/go-grpc/examples/greeter/server/proto/hello/hello.proto

It has these top-level messages:

Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSayHandler

func RegisterSayHandler(s server.Server, hdlr SayHandler, opts ...server.HandlerOption)

func RegisterSayServer added in v0.2.0

func RegisterSayServer(s *grpc.Server, srv SayServer)

Types

type Request

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

func (*Request) Descriptor

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

func (*Request) GetName added in v0.2.0

func (m *Request) GetName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetMsg added in v0.2.0

func (m *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type Say

type Say struct {
	SayHandler
}

func (*Say) Hello

func (h *Say) Hello(ctx context.Context, in *Request, out *Response) error

type SayClient

type SayClient interface {
	Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

func NewSayClient

func NewSayClient(cc *grpc.ClientConn) SayClient

type SayHandler

type SayHandler interface {
	Hello(context.Context, *Request, *Response) error
}

type SayServer added in v0.2.0

type SayServer interface {
	Hello(context.Context, *Request) (*Response, error)
}

type SayService added in v0.2.0

type SayService interface {
	Hello(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}

func SayServiceClient added in v0.2.0

func SayServiceClient(serviceName string, c client.Client) SayService

Jump to

Keyboard shortcuts

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