sthree

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Cache

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

func InitS3Cache

func InitS3Cache(url string, region string, bucket string, accessKey string, secretKey string, expirationDays int, ssl bool, createBucket bool, debug bool) (*S3Cache, error)

init S3 cache and populate with data

func (S3Cache) Get

func (c S3Cache) Get(hash string, maxAge int) ([]byte, error)

func (S3Cache) RunCleanUp

func (c S3Cache) RunCleanUp(maxAge int)

func (S3Cache) Save

func (c S3Cache) Save(hash string, data []byte) error

Jump to

Keyboard shortcuts

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