history

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func GetHistoryByLabelID(ctx context.Context, labelID string) ([]*model.LabelRevisionDoc, error)

GetHistoryByLabelID get all history by label id

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL