sql

package
v0.0.0-...-76bf06a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache implements autocert.Cache with a SQL database

func NewCache

func NewCache(db *sql.DB) (*Cache, error)

NewCache returns Cache instance

func (*Cache) Delete

func (m *Cache) Delete(ctx context.Context, key string) error

Delete removes certificate data from cache

func (*Cache) Get

func (m *Cache) Get(ctx context.Context, key string) ([]byte, error)

Get retrieves certificate data from cache

func (*Cache) Put

func (m *Cache) Put(ctx context.Context, key string, data []byte) error

Put stores certificate data to cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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