Documentation ¶
Index ¶
- Variables
- type Mongo
- func (this *Mongo) CreateId() string
- func (this *Mongo) DeleteProcess(ctx context.Context, id string) error
- func (this *Mongo) Disconnect()
- func (this *Mongo) ListProcesses(ctx context.Context, listOptions model.ListOptions) (result []model.Process, total int64, err error)
- func (this *Mongo) ReadAllPublicProcesses(ctx context.Context) (processes []model.Process, err error)
- func (this *Mongo) ReadProcess(ctx context.Context, id string) (process model.Process, exists bool, err error)
- func (this *Mongo) SetProcess(ctx context.Context, process model.Process) 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) DeleteProcess ¶
func (*Mongo) Disconnect ¶
func (this *Mongo) Disconnect()
func (*Mongo) ListProcesses ¶ added in v0.0.9
func (*Mongo) ReadAllPublicProcesses ¶
func (*Mongo) ReadProcess ¶
func (*Mongo) SetProcess ¶
Click to show internal directories.
Click to hide internal directories.