api1

package
v0.0.0-...-ad582c0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: EPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApi1Handler

func RegisterApi1Handler(s server.Server, hdlr Api1Handler, opts ...server.HandlerOption) error

Types

type Api1Handler

type Api1Handler interface {
	Get(context.Context, *proto1.Request, *proto1.Response) error
	Post(context.Context, *proto1.Request, *proto1.Response) error
}

type Api1Service

type Api1Service interface {
	Get(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
	Post(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.Response, error)
}

func NewApi1Service

func NewApi1Service(name string, c client.Client) Api1Service

Jump to

Keyboard shortcuts

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