storages

package
v0.0.0-...-84f7265 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 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 CacheStorage

type CacheStorage struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCacheStorage

func NewCacheStorage() *CacheStorage

func (*CacheStorage) Get

func (cs *CacheStorage) Get(key string) interface{}

func (*CacheStorage) Set

func (cs *CacheStorage) Set(key string, value interface{}, duration time.Duration)

type CachedEntity

type CachedEntity struct {
	CreatedAt      time.Time
	ExpirationTime int64
	// contains filtered or unexported fields
}

type Database

type Database struct {
	DB *sql.DB
}

func NewDBConnection

func NewDBConnection(conf *config.Config) *Database

Jump to

Keyboard shortcuts

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