Categorygithub.com/travisjeffery/certmagic-sqlstorage
modulepackage
1.2.0
Repository: https://github.com/travisjeffery/certmagic-sqlstorage.git
Documentation: pkg.go.dev

# README

certmagic-sqlstorage

GoDoc

SQL storage for CertMagic/Caddy TLS data.

Currently supports PostgreSQL but it'd be pretty easy to support other RDBs like SQLite and MySQL. Please make a pull-request if you add support for them and I'll gladly merge.

Example

db, err := sql.Open("postgres", "conninfo")
if err != nil { ... }
storage, err := certmagicsql.NewStorage(
    db,
    certmagicsql.Options{},
)
if err != nil { ... }
certmagic.Default.Storage = storage

LICENSE

MIT

# Functions

NewStorage creates a new storage instance.

# Constants

No description provided by the author

# Structs

No description provided by the author

# Interfaces

DB represents the required database API.

# Type aliases

Database RDBs this library supports, currently supports Postgres only.