storage

package
v0.0.0-...-d6f03b5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIMIT = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Second

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

func New

func New() *Second

func (*Second) AddToCart

func (s *Second) AddToCart(session string, item string, count int)

func (*Second) CacheRequest

func (s *Second) CacheRequest(r *http.Request, callback func() string) string

func (*Second) CanCache

func (s *Second) CanCache() bool

func (*Second) CheckToken

func (s *Second) CheckToken(token string) string

func (*Second) CleanFullSessions

func (s *Second) CleanFullSessions()

func (*Second) CleanSessions

func (s *Second) CleanSessions()

func (*Second) RescaleViewed

func (s *Second) RescaleViewed()

func (*Second) UpdateToken

func (s *Second) UpdateToken(token string, user string, item string)

Jump to

Keyboard shortcuts

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