Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface { HasMiddleware(name string) bool AddMiddleware(name string, middleware Handler) GetMiddleware(name ...string) ([]mux.MiddlewareFunc, error) }
func GetMiddlewareManager ¶
func GetMiddlewareManager() Manager
GetPluginManager gets the cmd manager instance (singleton).
type ManagerImpl ¶
type ManagerImpl struct {
// contains filtered or unexported fields
}
ManagerImpl is a manager for the plugins. It stores and maps the plugins to the command.
func (*ManagerImpl) AddMiddleware ¶
func (pm *ManagerImpl) AddMiddleware(name string, plugin Handler)
AddMiddleware Add a middleware to the manager.
func (*ManagerImpl) GetMiddleware ¶
func (pm *ManagerImpl) GetMiddleware(name ...string) ([]mux.MiddlewareFunc, error)
GetMiddleware returns the middleware, if found.
func (*ManagerImpl) HasMiddleware ¶
func (pm *ManagerImpl) HasMiddleware(name string) bool
HasMiddleware Check if the cmd exists in the manager.
Click to show internal directories.
Click to hide internal directories.