Documentation ¶
Overview ¶
Package mysql provides a MySQL-based storage layer implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶ added in v1.3.4
GetDatabase returns an instance of MySQL database, or creates one.
TODO(pavelkalinnikov): Make the dependency of MySQL quota provider from MySQL storage provider explicit.
func NewAdminStorage ¶
func NewAdminStorage(db *sql.DB) storage.AdminStorage
NewAdminStorage returns a MySQL storage.AdminStorage implementation backed by DB.
func NewLogStorage ¶
func NewLogStorage(db *sql.DB, mf monitoring.MetricFactory) storage.LogStorage
NewLogStorage creates a storage.LogStorage instance for the specified MySQL URL. It assumes storage.AdminStorage is backed by the same MySQL database as well.
func NewMapStorage ¶
func NewMapStorage(db *sql.DB) storage.MapStorage
NewMapStorage creates a storage.MapStorage instance for the specified MySQL URL. It assumes storage.AdminStorage is backed by the same MySQL database as well.
Types ¶
This section is empty.