demo_handler

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 16 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 interface {

	// 示例:支持 get 请求的方法
	Get() core.HandlerFunc
	// 示例:支持 post 请求的方法
	Post() core.HandlerFunc
	// 获取授权信息
	Auth() core.HandlerFunc
	// Trace 示例
	Trace() core.HandlerFunc
	// contains filtered or unexported methods
}

func New

func New(logger *zap.Logger, db db.Repo, cache cache.Repo, grpConn grpc.ClientConn) Handler

Jump to

Keyboard shortcuts

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