Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Keys map[string]string
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
func NewMiddleware ¶
func NewMiddleware(logger *logrus.Logger) *Middleware
func (*Middleware) CORSMiddleware ¶
func (m *Middleware) CORSMiddleware(next http.Handler) http.Handler
func (*Middleware) LoggingMiddleware ¶
func (m *Middleware) LoggingMiddleware(next http.Handler) http.Handler
func (*Middleware) RecoverMiddleware ¶
func (m *Middleware) RecoverMiddleware(next http.Handler) http.Handler
func (*Middleware) SignMiddleware ¶
func (m *Middleware) SignMiddleware(next http.Handler) http.Handler
type Signature ¶
type Signature struct { AppKey string `json:"appkey"` CurTime string `json:"curtime"` Nonce string `json:"nonce"` CheckSum string `json:"checksum"` }
func GenerateSignature ¶
func (*Signature) CheckSignature ¶
Click to show internal directories.
Click to hide internal directories.