Documentation ¶
Overview ¶
Package mongodb contains repository implementations using MongoDB as the underlying database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateRepository ¶
func NewStateRepository(db *mongo.Database) twins.StateRepository
NewStateRepository instantiates a MongoDB implementation of state repository.
func NewTwinRepository ¶
func NewTwinRepository(db *mongo.Database) twins.TwinRepository
NewTwinRepository instantiates a MongoDB implementation of twin repository.
Types ¶
Click to show internal directories.
Click to hide internal directories.