Documentation ¶
Overview ¶
Package storage init
Package storage xxx
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalRedisSession *RedisSession GlobalStorage Storage )
Globals
View Source
var LocalCache, _ = NewSlotCache()
LocalCache :
Functions ¶
Types ¶
type RedisSession ¶
RedisSession :
func GetDefaultRedisSession ¶
func GetDefaultRedisSession() *RedisSession
GetDefaultRedisSession : get default redis session for default database
type Storage ¶
type Storage interface { // LogRule operation CreateLogRule(ctx context.Context, lc *entity.LogRule) (string, error) UpdateLogRule(ctx context.Context, id string, lc entity.M) error DeleteLogRule(ctx context.Context, id string) error ListLogRules(ctx context.Context, cond *operator.Condition, opt *utils.ListOption) ( int64, []*entity.LogRule, error) GetLogRule(ctx context.Context, id string) (*entity.LogRule, error) // GetIndexSetID return stdIndexSetID and fileIndexSetID GetIndexSetID(ctx context.Context, projectID, clusterID string) (int, int, error) CreateOldIndexSetID(ctx context.Context, logIndex *entity.LogIndex) error GetOldIndexSetID(ctx context.Context, projectID string) (*entity.LogIndex, error) }
Storage 提供了数据库操作的接口
Click to show internal directories.
Click to hide internal directories.