sql

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: MIT Imports: 14 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 MySQL database

func NewCache

func NewCache(db *sql.DB, encryptionKey []byte) (*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