Documentation ¶
Index ¶
- type MongoDB
- func (d MongoDB) Delete(ctx context.Context, s slt.Select) error
- func (d MongoDB) Get(ctx context.Context, id slt.SID) (s slt.Select, found bool, err error)
- func (d MongoDB) QueryALL(ctx context.Context, max int) ([]slt.Select, error)
- func (d MongoDB) QueryWaiting(ctx context.Context, user string, send []string, recv []string, max int) ([]slt.Select, error)
- func (d MongoDB) Set(ctx context.Context, s slt.Select) (res slt.Select, conflict bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct { Table string // contains filtered or unexported fields }
MongoDB is a driver for simple operations over mongo replica
func NewDefault ¶
NewDefault creates mongodb from env variable MONGO_CONN
Click to show internal directories.
Click to hide internal directories.