redis

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanIncrement

func CanIncrement(ip string, action string, object string, expiration time.Duration) bool

func GetAllKeys

func GetAllKeys() []string

func GetAndClearMultipartCompletedParts

func GetAndClearMultipartCompletedParts(key string) map[string]string

func GetMultipartUploadID

func GetMultipartUploadID(key string) string

func GetNonce

func GetNonce(nonce string) (string, error)

func GetVersionUploadState

func GetVersionUploadState(versionID string) (*generated.CreateVersionResponse, error)

func InitializeRedis

func InitializeRedis(ctx context.Context)

func StoreMultipartCompletedPart

func StoreMultipartCompletedPart(key string, etag string, part int)

func StoreMultipartUploadID

func StoreMultipartUploadID(key string, id string)

func StoreNonce

func StoreNonce(nonce string, redirectURI string)

func StoreVersionUploadState

func StoreVersionUploadState(versionID string, data *generated.CreateVersionResponse, err error) error

Types

type StoredVersionUploadState

type StoredVersionUploadState struct {
	Data *generated.CreateVersionResponse `json:"data"`
	Err  string                           `json:"err"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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