demo_handler

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 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

	// 获取授权信息
	// @Tags Demo
	// @Router /auth/get [post]
	Auth() core.HandlerFunc

	// Trace 示例
	// @Tags Demo
	// @Router /demo/trace [get]
	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