Documentation ¶
Overview ¶
Package sqlcertcache implements an autocert.Cache to store certificate data within a SQL Database
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyTableName = errors.New("tableName must not be empty")
ErrEmptyTableName is returned when given table name is empty
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides a SQL backend to the autocert cache.
func New ¶
New creates an cache instance that can be used with autocert.Cache. It returns any errors that could happen while connecting to SQL.
func (*Cache) Delete ¶
Delete removes a certificate data from the cache under the specified key. If there's no such key in the cache, Delete returns nil.
Click to show internal directories.
Click to hide internal directories.