rest

package
v0.0.0-...-b829c5b Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRestHandler

func RegisterRestHandler(s server.Server, hdlr RestHandler, opts ...server.HandlerOption) error

Types

type RestHandler

type RestHandler interface {
	Search(context.Context, *proto1.Request, *proto1.Response) error
}

type RestService

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

func NewRestService

func NewRestService(name string, c client.Client) RestService

Jump to

Keyboard shortcuts

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