Documentation ¶
Index ¶
- type Conn
- func (x Conn) CountInTimeRange(colName string, text string, timestamp time.Time) (int64, error)
- func (x Conn) CountInTimeRangeRetry(colName string, text string, timeStamp time.Time, attempts int) (int64, error)
- func (x Conn) CountJobsInPeriod(since string, hub string) (int64, error)
- func (x Conn) FindOne(colName string, lvl string, text string) (LogLine, error)
- func (x Conn) GetCollection(coll string) ([]LogLine, error)
- func (x Conn) GetCollectionRetry(coll string, attempts int) ([]LogLine, error)
- func (x Conn) GetCollections() ([]string, error)
- func (x Conn) GetHubsCount(col string, since string) ([]HubsGroupCount, error)
- func (x Conn) GetHubsCountRetry(colName string, since string, attempts int) ([]HubsGroupCount, error)
- func (x Conn) GetTotalJobs(hub string, db string) (int64, error)
- func (x Conn) GetTotalLinks(hub string) (int64, error)
- func (x Conn) InsertPost(coll string, line LogLine)
- func (x Conn) InsertPosts(coll string, lines []LogLine)
- type HubsGroupCount
- type Insertion
- type LogLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { DB string URI string OPTS *options.ClientOptions BUFFER []Insertion }
Conn ...class object of mongo connection
func (Conn) CountInTimeRange ¶
func (Conn) CountInTimeRangeRetry ¶
func (Conn) CountJobsInPeriod ¶
func (Conn) GetCollectionRetry ¶
func (Conn) GetCollections ¶
func (Conn) GetHubsCount ¶
func (x Conn) GetHubsCount(col string, since string) ([]HubsGroupCount, error)
func (Conn) GetHubsCountRetry ¶
func (Conn) InsertPost ¶
InsertPost ...(column, timestamp, level, message) into the DB
func (Conn) InsertPosts ¶
InsertPosts ...(column, timestamp, level, message) into the DB
type HubsGroupCount ¶
Click to show internal directories.
Click to hide internal directories.