cookiemodel

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieModel

type CookieModel struct {
	DB *domain.DB
	// contains filtered or unexported fields
}

CookieModel stores and retrives cookies for you

func (*CookieModel) Create

func (m *CookieModel) Create(cookie domain.Cookie) (string, error)

Create adds the cookie to the DB and returns the UUID

func (*CookieModel) Delete

func (m *CookieModel) Delete(cookieID string) error

Delete removes the cookie from the DB

func (*CookieModel) Get

func (m *CookieModel) Get(cookieID string) (domain.Cookie, error)

Get returns the locally stored values for a cookie id / uuid

func (*CookieModel) PrepareStatements

func (m *CookieModel) PrepareStatements()

PrepareStatements pres the statements for this model

func (*CookieModel) UpdateExpires

func (m *CookieModel) UpdateExpires(cookieID string, expires time.Time) error

UpdateExpires sets the expiration date on the cooke

Jump to

Keyboard shortcuts

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