Documentation ¶
Index ¶
- Variables
- func FullContext() context.Context
- func GetWm(name string) interface{}
- func NewFuncMyOption(n string, f func(Options)) *funcOption
- func WriteRuntimeMsg() string
- type ContextKey
- type Handler
- type Interceptor
- type MD
- type Manager
- type Middleware
- type Option
- type Options
- type Runner
- type ServerInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultManager = &defaultManager
DefaultManager is the default middleware manager
Functions ¶
func NewFuncMyOption ¶
func WriteRuntimeMsg ¶
func WriteRuntimeMsg() string
Types ¶
type ContextKey ¶
type ContextKey string
type Interceptor ¶
type Interceptor func(ctx context.Context, req interface{}, info *ServerInfo, handler Handler) (interface{}, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Inter ¶
func (m *Manager) Inter() Interceptor
func (*Manager) Register ¶
func (m *Manager) Register(name string, mw Middleware)
type Middleware ¶
type Middleware interface { Inter(full bool) Interceptor Init(opt []Option) }
type ServerInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.