Documentation ¶
Index ¶
- func AddHistory(ctx context.Context, labelRevision *model.LabelRevisionDoc, labelID string, ...) (int, error)
- func GetAndAddHistory(ctx context.Context, labelID string, labels map[string]string, ...) (int, error)
- func GetHistoryByLabelID(ctx context.Context, labelID string) ([]*model.LabelRevisionDoc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHistory ¶
func AddHistory(ctx context.Context, labelRevision *model.LabelRevisionDoc, labelID string, kvs []*model.KVDoc) (int, error)
AddHistory increment labels revision and save current label stats to history, then update current revision to db
func GetAndAddHistory ¶
func GetAndAddHistory(ctx context.Context, labelID string, labels map[string]string, kvs []*model.KVDoc, domain string, project string) (int, error)
GetAndAddHistory get latest labels revision and call AddHistory
func GetHistoryByLabelID ¶
GetHistoryByLabelID get all history by label id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.