api

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 api is a generated protocol buffer package.

It is generated from these files:

github.com/jinbanglin/examples/api/rpc/proto/api.proto

It has these top-level messages:

CallRequest
CallResponse
EmptyRequest
EmptyResponse

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/jinbanglin/examples/api/rpc/proto/api.proto

It has these top-level messages:

CallRequest
CallResponse
EmptyRequest
EmptyResponse

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)

func RegisterFooHandler

func RegisterFooHandler(s server.Server, hdlr FooHandler, opts ...server.HandlerOption)

func RegisterFooServer

func RegisterFooServer(s *grpc.Server, srv FooServer)

Types

type CallRequest

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

func (*CallRequest) Descriptor

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

func (*CallRequest) GetName

func (m *CallRequest) GetName() string

func (*CallRequest) ProtoMessage

func (*CallRequest) ProtoMessage()

func (*CallRequest) Reset

func (m *CallRequest) Reset()

func (*CallRequest) String

func (m *CallRequest) String() string

type CallResponse

type CallResponse struct {
	Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}

func (*CallResponse) Descriptor

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

func (*CallResponse) GetMessage

func (m *CallResponse) GetMessage() string

func (*CallResponse) ProtoMessage

func (*CallResponse) ProtoMessage()

func (*CallResponse) Reset

func (m *CallResponse) Reset()

func (*CallResponse) String

func (m *CallResponse) String() string

type EmptyRequest

type EmptyRequest struct {
}

func (*EmptyRequest) Descriptor

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

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset

func (m *EmptyRequest) Reset()

func (*EmptyRequest) String

func (m *EmptyRequest) String() string

type EmptyResponse

type EmptyResponse struct {
}

func (*EmptyResponse) Descriptor

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

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset

func (m *EmptyResponse) Reset()

func (*EmptyResponse) String

func (m *EmptyResponse) String() string

type ExampleClient

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

func NewExampleClient

func NewExampleClient(cc *grpc.ClientConn) ExampleClient

type ExampleHandler

type ExampleHandler interface {
	Call(context.Context, *CallRequest, *CallResponse) error
}

type ExampleServer

type ExampleServer interface {
	Call(context.Context, *CallRequest) (*CallResponse, error)
}

type ExampleService

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

func NewExampleService

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

type FooClient

type FooClient interface {
	Bar(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

func NewFooClient

func NewFooClient(cc *grpc.ClientConn) FooClient

type FooHandler

type FooHandler interface {
	Bar(context.Context, *EmptyRequest, *EmptyResponse) error
}

type FooServer

type FooServer interface {
	Bar(context.Context, *EmptyRequest) (*EmptyResponse, error)
}

type FooService

type FooService interface {
	Bar(ctx context.Context, in *EmptyRequest, opts ...client.CallOption) (*EmptyResponse, error)
}

func NewFooService

func NewFooService(serviceName string, c client.Client) FooService

Jump to

Keyboard shortcuts

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