go_micro_fnc_template

package
v0.0.0-...-2897420 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package go_micro_fnc_template is a generated protocol buffer package.

It is generated from these files:

github.com/jinbanglin/examples/template/fnc/proto/example/example.proto

It has these top-level messages:

Message
Request
Response

Package go_micro_fnc_template is a generated protocol buffer package.

It is generated from these files:

github.com/jinbanglin/examples/template/fnc/proto/example/example.proto

It has these top-level messages:

Message
Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExampleHandler

func RegisterExampleHandler(s server.Server, hdlr ExampleHandler, opts ...server.HandlerOption)

func RegisterExampleServer

func RegisterExampleServer(s *grpc.Server, srv ExampleServer)

Types

type ExampleClient

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

func NewExampleClient

func NewExampleClient(cc *grpc.ClientConn) ExampleClient

type ExampleHandler

type ExampleHandler interface {
	Call(context.Context, *Request, *Response) error
}

type ExampleServer

type ExampleServer interface {
	Call(context.Context, *Request) (*Response, error)
}

type ExampleService

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

func NewExampleService

func NewExampleService(serviceName string, c client.Client) ExampleService

type Message

type Message struct {
	Say string `protobuf:"bytes,1,opt,name=say" json:"say,omitempty"`
}

func (*Message) Descriptor

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

func (*Message) GetSay

func (m *Message) GetSay() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

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

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

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

Jump to

Keyboard shortcuts

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