Documentation ¶
Index ¶
- type AnalyticsHookManager
- func (m *AnalyticsHookManager) Add(fn mock.AnalyticsHookFunc)
- func (m *AnalyticsHookManager) Child() mock.AnalyticsHookManager
- func (m *AnalyticsHookManager) Destroy()
- func (m *AnalyticsHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
- func (m *AnalyticsHookManager) PushDestroyer(fn func())
- type KvHookManager
- type MgmtHookManager
- type QueryHookManager
- func (m *QueryHookManager) Add(fn mock.QueryHookFunc)
- func (m *QueryHookManager) Child() mock.QueryHookManager
- func (m *QueryHookManager) Destroy()
- func (m *QueryHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
- func (m *QueryHookManager) PushDestroyer(fn func())
- type SearchHookManager
- func (m *SearchHookManager) Add(fn mock.SearchHookFunc)
- func (m *SearchHookManager) Child() mock.SearchHookManager
- func (m *SearchHookManager) Destroy()
- func (m *SearchHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
- func (m *SearchHookManager) PushDestroyer(fn func())
- type ViewHookManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsHookManager ¶
type AnalyticsHookManager struct {
// contains filtered or unexported fields
}
AnalyticsHookManager implements a tree of hooks which can handle an analytics request.
func (*AnalyticsHookManager) Add ¶
func (m *AnalyticsHookManager) Add(fn mock.AnalyticsHookFunc)
Add adds a new hook at the end of the processing chain.
func (*AnalyticsHookManager) Child ¶
func (m *AnalyticsHookManager) Child() mock.AnalyticsHookManager
Child returns a child hook manager to this hook manager.
func (*AnalyticsHookManager) Destroy ¶
func (m *AnalyticsHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*AnalyticsHookManager) Invoke ¶
func (m *AnalyticsHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.
func (*AnalyticsHookManager) PushDestroyer ¶
func (m *AnalyticsHookManager) PushDestroyer(fn func())
type KvHookManager ¶
type KvHookManager struct {
// contains filtered or unexported fields
}
KvHookManager implements a tree of hooks which can handle a kv packet.
func (*KvHookManager) Add ¶
func (m *KvHookManager) Add(fn mock.KvHookFunc)
Add adds a new hook at the end of the processing chain.
func (*KvHookManager) Child ¶
func (m *KvHookManager) Child() mock.KvHookManager
Child returns a child hook manager to this hook manager.
func (*KvHookManager) Destroy ¶
func (m *KvHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*KvHookManager) Invoke ¶
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook. It returns whether the end of the hook chain was reached or not.
func (*KvHookManager) PushDestroyer ¶
func (m *KvHookManager) PushDestroyer(fn func())
type MgmtHookManager ¶
type MgmtHookManager struct {
// contains filtered or unexported fields
}
MgmtHookManager implements a tree of hooks which can handle a mgmt request.
func (*MgmtHookManager) Add ¶
func (m *MgmtHookManager) Add(fn mock.MgmtHookFunc)
Add adds a new hook at the end of the processing chain.
func (*MgmtHookManager) Child ¶
func (m *MgmtHookManager) Child() mock.MgmtHookManager
Child returns a child hook manager to this hook manager.
func (*MgmtHookManager) Destroy ¶
func (m *MgmtHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*MgmtHookManager) Invoke ¶
func (m *MgmtHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.
func (*MgmtHookManager) PushDestroyer ¶
func (m *MgmtHookManager) PushDestroyer(fn func())
type QueryHookManager ¶
type QueryHookManager struct {
// contains filtered or unexported fields
}
QueryHookManager implements a tree of hooks which can handle a query request.
func (*QueryHookManager) Add ¶
func (m *QueryHookManager) Add(fn mock.QueryHookFunc)
Add adds a new hook at the end of the processing chain.
func (*QueryHookManager) Child ¶
func (m *QueryHookManager) Child() mock.QueryHookManager
Child returns a child hook manager to this hook manager.
func (*QueryHookManager) Destroy ¶
func (m *QueryHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*QueryHookManager) Invoke ¶
func (m *QueryHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.
func (*QueryHookManager) PushDestroyer ¶
func (m *QueryHookManager) PushDestroyer(fn func())
type SearchHookManager ¶
type SearchHookManager struct {
// contains filtered or unexported fields
}
SearchHookManager implements a tree of hooks which can handle a search request.
func (*SearchHookManager) Add ¶
func (m *SearchHookManager) Add(fn mock.SearchHookFunc)
Add adds a new hook at the end of the processing chain.
func (*SearchHookManager) Child ¶
func (m *SearchHookManager) Child() mock.SearchHookManager
Child returns a child hook manager to this hook manager.
func (*SearchHookManager) Destroy ¶
func (m *SearchHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*SearchHookManager) Invoke ¶
func (m *SearchHookManager) Invoke(source mock.MgmtService, req *mock.HTTPRequest) *mock.HTTPResponse
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.
func (*SearchHookManager) PushDestroyer ¶
func (m *SearchHookManager) PushDestroyer(fn func())
type ViewHookManager ¶
type ViewHookManager struct {
// contains filtered or unexported fields
}
ViewHookManager implements a tree of hooks which can handle a view request.
func (*ViewHookManager) Add ¶
func (m *ViewHookManager) Add(fn mock.ViewHookFunc)
Add adds a new hook at the end of the processing chain.
func (*ViewHookManager) Child ¶
func (m *ViewHookManager) Child() mock.ViewHookManager
Child returns a child hook manager to this hook manager.
func (*ViewHookManager) Destroy ¶
func (m *ViewHookManager) Destroy()
Destroy removes all hooks that were added to this manager.
func (*ViewHookManager) Invoke ¶
func (m *ViewHookManager) Invoke(source mock.ViewService, req *mock.HTTPRequest) *mock.HTTPResponse
Invoke will invoke this hook chain. It starts at the most recently registered hook and works it's way to the oldest hook.
func (*ViewHookManager) PushDestroyer ¶
func (m *ViewHookManager) PushDestroyer(fn func())