redis

package
v0.0.0-...-82c7b44 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultBuffSize = 1024

DefaultBuffSize storage与engine交互的channel的默认大小

View Source
const DefaultInterval = 300

DefaultInterval 向redis取数据的默认间隔

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver 用于实现storage.Driver接口

func (*Driver) Open

func (d *Driver) Open(logger log.Logger, cfg map[string]interface{}) (storage.Storage, error)

Open 创建redis 类型的storage

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage redis存储器实现

func (*Storage) Error

func (s *Storage) Error(template string, kvs []map[string]interface{}, err error)

Error 汇报渲染错误

func (*Storage) Get

func (s *Storage) Get(keys []string) (ch chan []storage.Data, err error)

Get 获取指定keys数据

func (*Storage) Stop

func (s *Storage) Stop() error

Stop 停止从Storage获取数据

func (*Storage) Success

func (s *Storage) Success(template string, kvs []map[string]interface{})

Success 汇报渲染成功

Jump to

Keyboard shortcuts

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