api

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheGetter

type CacheGetter interface {
	Get(bucket string, key, val interface{}) error
	GetValue(bucket string, key interface{}) (int64, string, error)
	GetAll(bucket string, tk, tv interface{}, fn func(k, v interface{}))
	ListBucket() []string
	ListKey(bucket string) []string
}

type CacheOpener

type CacheOpener interface {
	Open(file string)
	Close()
}

type CacheSetter

type CacheSetter interface {
	Add(bucket string)
	Put(bucket string, key, val interface{}, ttl int64)
	BatchPut(bucket string, key, val []interface{}, ttl int64)
	Delete(bucket string, key interface{}) error
}

type Cacher

type Cacher interface {
	CacheOpener
	CacheSetter
	CacheGetter
}

type DownloaderManagerCacheDeleter

type DownloaderManagerCacheDeleter interface {
	DeleteCache(fullname string)
}

type FilterManager

type FilterManager interface {
	Update(ctx context.Context, items []*models.FeedItem)
}

Jump to

Keyboard shortcuts

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