Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnPanicNotify ¶
func OnPanicNotify(logger *zap.Logger) rest.OnPanicNotify
OnPanicNotify 模拟panic通知
func RecordMetrics ¶
func RecordMetrics(method, uri string, success bool, httpCode, businessCode int, costSeconds float64)
RecordMetrics 模拟记录prometheus指标
func SessionHandler ¶
SessionHandler 模拟验证token session应该是一个struct用来存储userinfo,这里仅使用string模拟一下。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.