Documentation ¶
Index ¶
- Variables
- type DB
- func (s *DB) GetAction(ctx context.Context, id primitive.ObjectID) (model.Action, error)
- func (s *DB) GetEvent(ctx context.Context, eventID string, actionID string) (model.Event, error)
- func (s *DB) GetEventStatus(ctx context.Context, actionID string) ([]response.EventStatusResponse, error)
- func (s *DB) GetEvents(ctx context.Context, actionID string) ([]response.EventResponse, error)
- func (s *DB) StoreAction(ctx context.Context, id primitive.ObjectID, t []string, eventCount int) (string, error)
- func (s *DB) StoreEvent(ctx context.Context, event *model.Event) (string, error)
- func (s *DB) UpdateEventStatus(ctx context.Context, eventID string) *mongo.UpdateResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionCollection = "actions" EventsCollection = "events" )
Functions ¶
This section is empty.
Types ¶
type DB ¶
func NewMongoDB ¶
func (*DB) GetEventStatus ¶
func (*DB) StoreAction ¶
func (*DB) StoreEvent ¶
func (*DB) UpdateEventStatus ¶
Click to show internal directories.
Click to hide internal directories.