securecookie

package
v4.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package securecookie provides tools for using Bolt as a standard persistence layer for services

Index

Constants

View Source
const Driver = "securecookie"

Variables

This section is empty.

Functions

func NewDAO

func NewDAO(ctx context.Context, driver string, dsn string, prefix string) (dao.DAO, error)

NewDAO creates a new handler for the boltdb dao

Types

type DAO

type DAO interface {
	IsCookie()
	dao.DAO
}

DAO defines the functions specific to the boltdb dao

type Handler

type Handler struct {
	dao.DAO
}

Handler for the main functions of the DAO

func (*Handler) Init

Init initialises the handler

func (*Handler) IsCookie

func (h *Handler) IsCookie()

func (*Handler) LocalAccess

func (h *Handler) LocalAccess() bool

LocalAccess overrides DAO

Jump to

Keyboard shortcuts

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