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: 13 Imported by: 1

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) Auth

func (h *Handler) Auth(ctx context.Context, req *pb.User, resp *pb.Token) error

func (*Handler) Create

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

func (*Handler) Get

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

func (*Handler) GetAll

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

func (*Handler) GetRepo

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

从主会话中 Clone() 出新会话处理查询

func (*Handler) ValidateToken

func (h *Handler) ValidateToken(ctx context.Context, req *pb.Token, resp *pb.Token) error

Jump to

Keyboard shortcuts

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