handler

package
v0.0.0-...-54bb499 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Broker broker.Broker
	// contains filtered or unexported fields
}

实现微服务的服务端

func GetHandler

func GetHandler(session *mgo.Session, bk broker.Broker) *Handler

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, req *pb.Vessel, resp *pb.Response) error

func (*Handler) FindAvailable

func (h *Handler) FindAvailable(ctx context.Context, req *pb.Specification, resp *pb.Response) error

func (*Handler) GetRepo

func (h *Handler) GetRepo() model.Repository

Jump to

Keyboard shortcuts

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