Documentation ¶
Index ¶
- type Config
- type Repo
- func (r *Repo) Col(name string) *mongo.Collection
- func (r *Repo) ConnectDB(db string) error
- func (r *Repo) ConnectWithConfig(conf Config) error
- func (r *Repo) Ctx() (context.Context, context.CancelFunc)
- func (r *Repo) Index(indexes ...func(context.Context) error) error
- func (r *Repo) Upsert(col *mongo.Collection, filter, obj interface{}) Result
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) ConnectWithConfig ¶
Click to show internal directories.
Click to hide internal directories.