Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage() (persistence.Storage, error)
NewStorage creates a new in-memory storage. For now this uses the gorm provider with the gorm.WithInMemory. In the future we want to supply our own independent implementation. It automatically sets the maximum concurrent connections to 1 because the in-memory sqlite driver has problems with more than concurrent connection (see https://github.com/mattn/go-sqlite3/issues/511).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.