Documentation
¶
Index ¶
- type CookieModel
- func (m *CookieModel) Create(cookie domain.Cookie) (string, error)
- func (m *CookieModel) Delete(cookieID string) error
- func (m *CookieModel) Get(cookieID string) (domain.Cookie, error)
- func (m *CookieModel) PrepareStatements()
- func (m *CookieModel) UpdateExpires(cookieID string, expires time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieModel ¶
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
Click to show internal directories.
Click to hide internal directories.