drive

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyQueueError = errors.New("empty queue")
View Source
var NilResultError = errors.New("nil result")

Functions

This section is empty.

Types

type LocalDrive

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

func NewLocalDrive

func NewLocalDrive(isBroker bool) LocalDrive

func (LocalDrive) Close

func (d LocalDrive) Close()

func (LocalDrive) Get

func (d LocalDrive) Get(key string) ([]byte, error)

func (LocalDrive) Init

func (d LocalDrive) Init()

func (LocalDrive) LPop

func (d LocalDrive) LPop(queueName string) ([]byte, error)

func (LocalDrive) LPush

func (d LocalDrive) LPush(queueName string, value []byte) error

func (LocalDrive) RPush

func (d LocalDrive) RPush(queueName string, value []byte) error

func (LocalDrive) Set

func (d LocalDrive) Set(key string, value []byte, exTime int) error

type UnsafeFileLock

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

func NewFileLock

func NewFileLock(s string) UnsafeFileLock

func (UnsafeFileLock) Init

func (l UnsafeFileLock) Init()

func (UnsafeFileLock) Lock

func (l UnsafeFileLock) Lock() error

func (UnsafeFileLock) Unlock

func (l UnsafeFileLock) Unlock()

Jump to

Keyboard shortcuts

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