Documentation ¶
Index ¶
- type SafeMode
- func (m *SafeMode) Add(tctx *tcontext.Context, n int32) error
- func (m *SafeMode) DescForTable(tctx *tcontext.Context, table *filter.Table) error
- func (m *SafeMode) Enable() bool
- func (m *SafeMode) IncrForTable(tctx *tcontext.Context, table *filter.Table) error
- func (m *SafeMode) Reset(tctx *tcontext.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeMode ¶
type SafeMode struct {
// contains filtered or unexported fields
}
SafeMode controls whether enable safe-mode through a mechanism similar to reference-count indicates enabled excepting the count is 0.
func (*SafeMode) DescForTable ¶
DescForTable tries to add -1 on the count if the table added before.
func (*SafeMode) IncrForTable ¶
IncrForTable tries to add 1 on the count if the table not added before can only be desc with DescForTable.
Click to show internal directories.
Click to hide internal directories.