Documentation
¶
Index ¶
- Variables
- type Mongo
- func (this *Mongo) CreateId() string
- func (this *Mongo) GetInstance(ctx context.Context, id string) (instance model.Instance, exists bool, err error)
- func (this *Mongo) GetInstances(ctx context.Context, ids []string) (result []model.Instance, allExist bool, err error)
- func (this *Mongo) ListInstances(ctx context.Context, limit int64, offset int64, sort string, asc bool, ...) (result []model.Instance, err error)
- func (this *Mongo) RemoveInstances(ctx context.Context, ids []string) error
- func (this *Mongo) SetInstance(ctx context.Context, instance model.Instance) error
- func (this *Mongo) Transaction(ctx context.Context) (resultCtx context.Context, close func(success bool) error, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCollections = []func(db *Mongo) error{}
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) GetInstance ¶
func (*Mongo) GetInstances ¶
func (*Mongo) ListInstances ¶
func (*Mongo) RemoveInstances ¶
func (*Mongo) SetInstance ¶
Click to show internal directories.
Click to hide internal directories.