Versions in this module Expand all Collapse all v0 v0.3.1 Jun 13, 2023 v0.3.0 Jun 9, 2023 Changes in this version + type CsvHander struct + func (h CsvHander) Callback(commits []commit.CommitEvent) + type DatabaseHandler struct + Db database.Database + func (dh *DatabaseHandler) Callback(commits []commit.CommitEvent) + type ElasticHandler struct + NoDuplicates bool + Password string + RemoteURI string + UseZincAwsS3 bool + Username string + func (e *ElasticHandler) DoPost(path string, data string) + func (e *ElasticHandler) Import(commit commit.CommitEvent) + func (e *ElasticHandler) ImportBulk(commits []commit.CommitEvent) + func (e *ElasticHandler) Setup() + func (e ElasticHandler) Callback(commits []commit.CommitEvent) + type Handler interface + Callback func([]commit.CommitEvent) + type NoHandler struct + func (n NoHandler) Callback(commits []commit.CommitEvent) + type ScriptHandler struct + DroppedCommits uint64 + LogFile string + MaxWorkers int + Path string + func (h ScriptHandler) Callback(commits []commit.CommitEvent) + func (h ScriptHandler) Run(worker int, commit commit.CommitEvent) + type SlackHandler struct + ChannelID string + Token string + func NewSlack(token string, channelID string) *SlackHandler + func (s SlackHandler) Callback(commits []commit.CommitEvent) + func (s SlackHandler) PostMessage(commit commit.CommitEvent) + func (s SlackHandler) PostTruffle(t Truffle) + type Truffle struct + DetectorName string + DetectorType int + ExtraData interface{} + Raw string + Redacted string + SourceID int + SourceMetadata struct{ ... } + SourceName string + SourceType int + StructuredData interface{} + Verified bool + type TruffleHandler struct + DroppedCommits uint64 + GithubToken string + LogFile string + MaxWorkers int + Path string + Slack *SlackHandler + func (h *TruffleHandler) Callback(commits []commit.CommitEvent) + func (h *TruffleHandler) Run(worker int, commit commit.CommitEvent) + func (h *TruffleHandler) StartWorkers()