services

package
v0.0.0-...-8c85031 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdder

func NewAdder(db store.Database) (sidebar.Adder, error)

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

func NewCreater(db store.Database) (sidebar.Creater, error)

NewCreater wraps a database connection with a *creater that implements the sidebar.Creater interface.

func NewDeleter

func NewDeleter(db store.Deleter) (sidebar.Deleter, error)

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.

func NewGetter

func NewGetter(db store.Database) (sidebar.Getter, error)

NewGetter takes the database dependency and uses it to implement the sidebar.Getter interface. This interface is used to retrieve objects from store the database.

func NewUpdater

func NewUpdater(db store.Database) (sidebar.Updater, error)

NewUpdater takes the database dependency and uses it to implement the sidebar.Updater interface. This interface is used to update objects in the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL