api

package
v0.0.0-...-07c4d0f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/micro/examples/api/default/proto/api.proto

It has these top-level messages:

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/micro/examples/api/default/proto/api.proto

It has these top-level messages:

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 RegisterFooHandler

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

Types

type Example

type Example struct {
	ExampleHandler
}

func (*Example) Call

func (h *Example) Call(ctx context.Context, in *go_api.Request, out *go_api.Response) error

type ExampleClient

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

func NewExampleClient

func NewExampleClient(serviceName string, c client.Client) ExampleClient

type ExampleHandler

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

type Foo

type Foo struct {
	FooHandler
}

func (*Foo) Bar

func (h *Foo) Bar(ctx context.Context, in *go_api.Request, out *go_api.Response) error

type FooClient

type FooClient interface {
	Bar(ctx context.Context, in *go_api.Request, opts ...client.CallOption) (*go_api.Response, error)
}

func NewFooClient

func NewFooClient(serviceName string, c client.Client) FooClient

type FooHandler

type FooHandler interface {
	Bar(context.Context, *go_api.Request, *go_api.Response) error
}

Jump to

Keyboard shortcuts

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