storage

package
v0.0.0-...-4468414 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStats

type AccountStats struct {
	AccountId int64 `bson:"_id"`
	Events    int64 `bson:"events"`
}

type AdminHelper

type AdminHelper struct {
	// contains filtered or unexported fields
}

func CreateAdminHelper

func CreateAdminHelper(ctx context.Context, uri string) (*AdminHelper, error)

func (AdminHelper) IsCommandRunning

func (h AdminHelper) IsCommandRunning(ctx context.Context, jobId int64) (bool, error)

type EventsRepository

type EventsRepository struct {
	// contains filtered or unexported fields
}

func CreateEventsRepository

func CreateEventsRepository(ctx context.Context, conn config.MongoConnection) (*EventsRepository, error)

func (*EventsRepository) Close

func (r *EventsRepository) Close(ctx context.Context) error

func (*EventsRepository) CountByAccount

func (r *EventsRepository) CountByAccount(ctx context.Context) ([]AccountStats, error)

func (*EventsRepository) Delete

func (r *EventsRepository) Delete(ctx context.Context, corrId int64, q models.DataQuery) (int64, error)

func (*EventsRepository) Exists

func (r *EventsRepository) Exists(ctx context.Context, q models.DataQuery) (bool, error)

func (*EventsRepository) Get

func (*EventsRepository) InsertMany

func (r *EventsRepository) InsertMany(ctx context.Context, ls []interface{}) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL