truffle

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Truffle

type Truffle struct {
	DetectorName   string      `json:"DetectorName"`
	DetectorType   int         `json:"DetectorType"`
	ExtraData      interface{} `json:"ExtraData"`
	Raw            string      `json:"Raw"`
	Redacted       string      `json:"Redacted"`
	SourceID       int         `json:"SourceID"`
	SourceMetadata struct {
		Data struct {
			Github struct {
				Commit     string `json:"commit"`
				Email      string `json:"email"`
				File       string `json:"file"`
				Line       int    `json:"line"`
				Link       string `json:"link"`
				Repository string `json:"repository"`
				Timestamp  string `json:"timestamp"`
			} `json:"Github"`
		} `json:"Data"`
	} `json:"SourceMetadata"`
	SourceName     string      `json:"SourceName"`
	SourceType     int         `json:"SourceType"`
	StructuredData interface{} `json:"StructuredData"`
	Verified       bool        `json:"Verified"`
}

type TruffleHandler

type TruffleHandler struct {
	Path           string
	MaxWorkers     int
	DroppedCommits uint64
	LogFile        string
	GithubToken    string

	SlackConf slackconf.SlackHandler
	// contains filtered or unexported fields
}

func NewTruffleHandler

func NewTruffleHandler(path string, maxWorkers int, githubToken string) *TruffleHandler

func (*TruffleHandler) Callback

func (h *TruffleHandler) Callback(commits []commit.CommitEvent)

func (*TruffleHandler) Run

func (h *TruffleHandler) Run(worker int, commit commit.CommitEvent)

func (TruffleHandler) SendSlack

func (s TruffleHandler) SendSlack(t Truffle)

func (*TruffleHandler) StartWorkers

func (h *TruffleHandler) StartWorkers()

Jump to

Keyboard shortcuts

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