Documentation
¶
Index ¶
- func FilterAndSortNewFiles(cfg Config, lastProcessedTime time.Time) ([]string, time.Time, error)
- func GetLastProcessedTime(cfg Config, db *sql.DB) (time.Time, error)
- func InitDatabase(db *sql.DB) error
- func InsertOrUpdateAccounts(cfg Config, db *sql.DB, accounts map[string]AccountInfo) (uint64, uint64, error)
- func OpenOrCreateDB(cfg Config) (*sql.DB, error)
- func ParseAuditFile(cfg Config, filename string) (map[string]AccountInfo, error)
- func ProcessFilesParallel(cfg Config, filenames []string) (map[string]AccountInfo, error)
- func UpdateLastProcessedTime(cfg Config, db *sql.DB, lastProcessedTime time.Time) error
- type AccountInfo
- type ChunkResult
- type Config
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAndSortNewFiles ¶
func InitDatabase ¶
func InsertOrUpdateAccounts ¶
func ParseAuditFile ¶
func ParseAuditFile(cfg Config, filename string) (map[string]AccountInfo, error)
func ProcessFilesParallel ¶
func ProcessFilesParallel(cfg Config, filenames []string) (map[string]AccountInfo, error)
Types ¶
type ChunkResult ¶
type ChunkResult struct {
Accounts map[string]AccountInfo // key is "username@hostname"
}
Click to show internal directories.
Click to hide internal directories.