storages

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFile

func NewFile(filename string, flag int, perm os.FileMode) (*File, error)

func (*File) Append

func (file *File) Append(data []byte) (int, error)

func (*File) Close

func (file *File) Close()

func (*File) ReadAll

func (file *File) ReadAll() ([]byte, error)

func (*File) Truncate

func (file *File) Truncate() error

func (*File) WriteAll

func (file *File) WriteAll(data []byte, perm os.FileMode) error

type RedisClient

type RedisClient struct {
	Id string
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(host string, port uint16, password string) (*RedisClient, error)

func (RedisClient) Close

func (client RedisClient) Close() error

func (RedisClient) GetDatabases

func (client RedisClient) GetDatabases() (map[uint64]string, error)

func (RedisClient) Scan

func (client RedisClient) Scan(cursor *uint64, match string, limit uint64) ([]string, error)

func (RedisClient) Select

func (client RedisClient) Select(db uint64) error

func (RedisClient) SerializedLength

func (client RedisClient) SerializedLength(key string) (uint64, error)

func (RedisClient) Ttl

func (client RedisClient) Ttl(key string) (int64, error)

Jump to

Keyboard shortcuts

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