Documentation ¶
Index ¶
- Variables
- func Deleted() func(*ListOpts)
- func Limit(i int) func(*ListOpts)
- func NewListOpts() []func(*ListOpts)
- func Offset(i int) func(*ListOpts)
- func Org(i string) func(*ListOpts)
- func Query(value interface{}) string
- func Status(s string) func(*ListOpts)
- func Valid(id string) bool
- type DB
- func (db *DB) Close() error
- func (db *DB) Copy()
- func (db *DB) Execute(ctx context.Context, collName string, f func(*mongo.Collection) error) error
- func (db *DB) ExecuteTimeout(ctx context.Context, timeout time.Duration, collName string, ...) error
- func (db *DB) StatusCheck(ctx context.Context) error
- type ListOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDBProvided = errors.New("invalid DB provided")
ErrInvalidDBProvided is returned in the event that an uninitialized db is used to perform actions against.
Functions ¶
func NewListOpts ¶
func NewListOpts() []func(*ListOpts)
Types ¶
type DB ¶
DB is a collection of support for different DB technologies. Currently only MongoDB has been implemented. We want to be able to access the raw database support for the given DB so an interface does not work. Each database is too different.
func (*DB) Copy ¶
func (db *DB) Copy()
Copy returns a new DB value for use with MongoDB based on master session.
func (db *DB) Copy() *DB { ses := db.session.Copy()
Click to show internal directories.
Click to hide internal directories.