Documentation ¶
Index ¶
- func ConvertLevelFromString(s string) int
- func GenerateHash(data string) string
- func GenerateIdentifier() (string, error)
- func GetLevelCrash() int
- func GetLevelError() int
- func GetLevelInfo() int
- func GetLevelLog() int
- func GetLevelUnknown() int
- type Bug
- type BugRecord
- type BugStorage
- type Log
- type Process
- type ProcessBug
- func (p ProcessBug) BugHandler(w http.ResponseWriter, r *http.Request)
- func (p ProcessBug) Fetch() (Response, error)
- func (p ProcessBug) GenerateBugInfo(bug *Bug, agentID string) error
- func (p ProcessBug) GenerateComms(bug *Bug) error
- func (p ProcessBug) GenerateTicket(bug *Bug) error
- func (p ProcessBug) Parse(request events.APIGatewayProxyRequest) (Response, error)
- func (p ProcessBug) Report() (Response, error)
- type ProcessLog
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLevelFromString ¶
ConvertLevelFromString nolint: gocyclo
func GenerateHash ¶
func GenerateIdentifier ¶
func GetLevelCrash ¶
func GetLevelCrash() int
func GetLevelError ¶
func GetLevelError() int
func GetLevelInfo ¶
func GetLevelInfo() int
func GetLevelLog ¶
func GetLevelLog() int
func GetLevelUnknown ¶
func GetLevelUnknown() int
Types ¶
type Bug ¶
type Bug struct { agent.Agent File string `json:"file"` Line string `json:"line"` LineNumber int `json:"line_number"` FileLineHash string `json:"file_line_hash"` Bug string `json:"bug"` Raw string `json:"raw"` BugLine string `json:"bug_line"` Level string `json:"level"` LevelNumber int `json:"level_number"` Hash string `json:"hash"` Identifier string `json:"identifier"` TimesReported int `json:"times_reported"` RemoteLink string `json:"-"` TicketSystem string `json:"-"` FirstReported time.Time LastReported time.Time }
func (*Bug) GenerateHash ¶
func (*Bug) GenerateIdentifier ¶
type BugRecord ¶
type BugRecord struct { ID string `json:"id"` AgentID string `json:"agent_id"` Level string `json:"level"` FileLineHash string `json:"file_line_hash"` Hash string `json:"hash"` Full interface{} `json:"full"` TimesReported string `json:"times_reported"` TimesReportedNumber int `json:"times_reported_number" dynamodbav:"-"` LastReportedTime time.Time `json:"last_reported_time" dynamodbav:"-"` LastReported string `json:"last_reported"` FirstReportedTime time.Time `json:"first_reported_time" dynamodbav:"-"` FirstReported string `json:"first_reported"` }
type BugStorage ¶
func NewBugStorage ¶
func NewBugStorage(c config.Config) *BugStorage
func (BugStorage) FindAndStore ¶
func (b BugStorage) FindAndStore(data BugRecord) (BugRecord, error)
func (BugStorage) Insert ¶
func (b BugStorage) Insert(data BugRecord) error
func (BugStorage) Store ¶
func (b BugStorage) Store(data BugRecord) error
func (BugStorage) Update ¶
func (b BugStorage) Update(data BugRecord) error
type Log ¶
type Log struct { agent.Agent Line string `json:"line"` Level string `json:"level"` LevelNumber int `json:"level_number"` File string `json:"file"` Log string `json:"log"` Identifier string `json:"identifier"` Stack []byte `json:"stack"` LogFmt string `json:"log_fmt"` }
func (*Log) GenerateIdentifier ¶
type ProcessBug ¶
func NewBug ¶
func NewBug(c config.Config) ProcessBug
func (ProcessBug) BugHandler ¶
func (p ProcessBug) BugHandler(w http.ResponseWriter, r *http.Request)
func (ProcessBug) Fetch ¶
func (p ProcessBug) Fetch() (Response, error)
func (ProcessBug) GenerateBugInfo ¶
func (p ProcessBug) GenerateBugInfo(bug *Bug, agentID string) error
func (ProcessBug) GenerateComms ¶
func (p ProcessBug) GenerateComms(bug *Bug) error
func (ProcessBug) GenerateTicket ¶
func (p ProcessBug) GenerateTicket(bug *Bug) error
func (ProcessBug) Parse ¶
func (p ProcessBug) Parse(request events.APIGatewayProxyRequest) (Response, error)
func (ProcessBug) Report ¶
func (p ProcessBug) Report() (Response, error)
type ProcessLog ¶
func NewLog ¶
func NewLog(c config.Config) ProcessLog
func (ProcessLog) GenerateLogInfo ¶
func (l ProcessLog) GenerateLogInfo(log *Log, agentID string) error
func (ProcessLog) LogHandler ¶
func (l ProcessLog) LogHandler(w http.ResponseWriter, r *http.Request)
func (ProcessLog) StoreLog ¶
func (l ProcessLog) StoreLog(log *Log) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.