Documentation ¶
Index ¶
- func NewAdder(db store.Database) (sidebar.Adder, error)
- func NewAuthenticater(db store.Database) (sidebar.Authenticater, error)
- func NewCreater(db store.Database) (sidebar.Creater, error)
- func NewDeleter(db store.Deleter) (sidebar.Deleter, error)
- func NewGetter(db store.Database) (sidebar.Getter, error)
- func NewUpdater(db store.Database) (sidebar.Updater, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdder ¶
NewAdder takes the database dependency and uses it to implement the sidebar.Adder interface. This interface is used to create new objects and store them in the database.
func NewAuthenticater ¶
func NewAuthenticater(db store.Database) (sidebar.Authenticater, error)
NewAuthenticater wraps a database connection with an *auth that implements the sidebar.Authenticater interface.
func NewCreater ¶
NewCreater wraps a database connection with a *creater that implements the sidebar.Creater interface.
func NewDeleter ¶
NewDeleter takes the database dependency and uses it to implement the sidebar.Deleter interface. This interface is used to remove objects from store the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.