Documentation ¶
Overview ¶
Package logrule log rule
Index ¶
- type ModelLogRule
- func (m *ModelLogRule) CreateLogRule(ctx context.Context, lc *entity.LogRule) (string, error)
- func (m *ModelLogRule) DeleteLogRule(ctx context.Context, id string) error
- func (m *ModelLogRule) GetIndexSetID(ctx context.Context, projectID, clusterID string) (int, int, error)
- func (m *ModelLogRule) GetLogRule(ctx context.Context, id string) (*entity.LogRule, error)
- func (m *ModelLogRule) ListLogRules(ctx context.Context, cond *operator.Condition, opt *utils.ListOption) (int64, []*entity.LogRule, error)
- func (m *ModelLogRule) UpdateLogRule(ctx context.Context, id string, lc entity.M) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelLogRule ¶
type ModelLogRule struct {
// contains filtered or unexported fields
}
ModelLogRule provides handling log rule operations to database
func (*ModelLogRule) CreateLogRule ¶
CreateLogRule create log rule
func (*ModelLogRule) DeleteLogRule ¶
func (m *ModelLogRule) DeleteLogRule(ctx context.Context, id string) error
DeleteLogRule delete log rule
func (*ModelLogRule) GetIndexSetID ¶
func (m *ModelLogRule) GetIndexSetID(ctx context.Context, projectID, clusterID string) (int, int, error)
GetIndexSetID get index set id
func (*ModelLogRule) GetLogRule ¶
GetLogRule get log rule
func (*ModelLogRule) ListLogRules ¶
func (m *ModelLogRule) ListLogRules(ctx context.Context, cond *operator.Condition, opt *utils.ListOption) ( int64, []*entity.LogRule, error)
ListLogRules list log rules
func (*ModelLogRule) UpdateLogRule ¶
UpdateLogRule update log rule
Click to show internal directories.
Click to hide internal directories.