Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
NewStorage creates a new storage instance. The `db` you pass in will likely be a *database/sql.DB. This method will create the required metadata tables if necessary (certmagic_data and certmagic_locks).
Types ¶
type DB ¶
type DB interface { BeginTx(context.Context, *sql.TxOptions) (*sql.Tx, error) ExecContext(context.Context, string, ...interface{}) (sql.Result, error) QueryRowContext(context.Context, string, ...interface{}) *sql.Row QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) }
DB represents the required database API. You can use a *database/sql.DB.
Click to show internal directories.
Click to hide internal directories.