Documentation
¶
Index ¶
- type Mongo
- func (m *Mongo) Checker(ctx context.Context, state *healthcheck.CheckState) error
- func (m *Mongo) Close(ctx context.Context) error
- func (m *Mongo) CreateEvent(ctx context.Context, event *domain.Event) error
- func (m *Mongo) CreateJob(ctx context.Context, job *domain.Job) (*domain.Job, error)
- func (m *Mongo) GetJob(ctx context.Context, jobID string) (*domain.Job, error)
- func (m *Mongo) Init(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
config.MongoConfig
Connection *mongodriver.MongoConnection
// contains filtered or unexported fields
}
func (*Mongo) Checker ¶
func (m *Mongo) Checker(ctx context.Context, state *healthcheck.CheckState) error
Checker is called by the healthcheck library to check the health state of this mongoDB instance
func (*Mongo) CreateEvent ¶
Click to show internal directories.
Click to hide internal directories.