Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMigration ¶
func AddMigration(obj interface{})
func MigrateDatabase ¶
func MigrateDatabase(conn *Connection) error
func TruncateAll ¶
func TruncateAll(conn *Connection) error
Types ¶
type Connection ¶
Connection is the interface a storage provider must implement.
func Dial ¶
func Dial(config *conf.GlobalConfiguration) (*Connection, error)
Dial will connect to that storage engine
func (*Connection) GetGlobalConfig ¶
func (c *Connection) GetGlobalConfig(ctx context.Context) *conf.GlobalConfiguration
func (*Connection) GetInstanceID ¶
func (c *Connection) GetInstanceID(ctx context.Context) uuid.UUID
GetInstanceID reads the instance id from the context.
func (*Connection) Transaction ¶
func (c *Connection) Transaction(fn func(*Connection) error) error
Click to show internal directories.
Click to hide internal directories.