api

package
v0.0.0-...-a649600 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

github.com/ship-os/ship-micro/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 RegisterFooHandler

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

Types

type ExampleHandler

type ExampleHandler 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 FooHandler

type FooHandler 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