Documentation
¶
Index ¶
- func ConvertLevelFromString(s string, logger *zap.SugaredLogger) int
- func GenerateHash(data string) string
- func GetLevelError() int
- func GetLevelInfo() int
- func GetLevelLog() int
- func GetLevelUnknown() int
- type Bug
- type BugInput
- type Process
- type ProcessBug
- func (p ProcessBug) CreateBugHandler(w http.ResponseWriter, r *http.Request)
- func (p ProcessBug) Fetch() (Response, error)
- func (p ProcessBug) GetBugHandler(w http.ResponseWriter, r *http.Request)
- func (p ProcessBug) Parse(request events.APIGatewayProxyRequest) (Response, error)
- func (p ProcessBug) Report() (Response, error)
- type ProcessFile
- func (p ProcessFile) Fetch() (Response, error)
- func (p ProcessFile) FileBugHandler(w http.ResponseWriter, r *http.Request)
- func (p ProcessFile) GenerateBugInfo(bug *Bug, agentID string) error
- func (p ProcessFile) GenerateComms(bug *Bug) error
- func (p ProcessFile) GenerateTicket(bug *Bug) error
- func (p ProcessFile) Parse(request events.APIGatewayProxyRequest) (Response, error)
- func (p ProcessFile) Report() (Response, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLevelFromString ¶
func ConvertLevelFromString(s string, logger *zap.SugaredLogger) int
func GenerateHash ¶
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"`
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:"-"`
Posted time.Time
}
func (*Bug) GenerateHash ¶
func (b *Bug) GenerateHash(logger *zap.SugaredLogger) error
func (*Bug) GenerateIdentifier ¶
func (b *Bug) GenerateIdentifier(logger *zap.SugaredLogger) error
func (*Bug) ReportedTimes ¶
type ProcessBug ¶
type ProcessBug struct {
Config config.Config
Logger zap.SugaredLogger
}
func NewBug ¶
func NewBug(c config.Config, l zap.SugaredLogger) ProcessBug
func (ProcessBug) CreateBugHandler ¶
func (p ProcessBug) CreateBugHandler(w http.ResponseWriter, r *http.Request)
func (ProcessBug) Fetch ¶
func (p ProcessBug) Fetch() (Response, error)
func (ProcessBug) GetBugHandler ¶
func (p ProcessBug) GetBugHandler(w http.ResponseWriter, r *http.Request)
func (ProcessBug) Parse ¶
func (p ProcessBug) Parse(request events.APIGatewayProxyRequest) (Response, error)
func (ProcessBug) Report ¶
func (p ProcessBug) Report() (Response, error)
type ProcessFile ¶
type ProcessFile struct {
Config config.Config
Logger zap.SugaredLogger
CommsChannel string
}
func NewFile ¶
func NewFile(c config.Config, l zap.SugaredLogger) ProcessFile
func (ProcessFile) Fetch ¶
func (p ProcessFile) Fetch() (Response, error)
func (ProcessFile) FileBugHandler ¶
func (p ProcessFile) FileBugHandler(w http.ResponseWriter, r *http.Request)
func (ProcessFile) GenerateBugInfo ¶
func (p ProcessFile) GenerateBugInfo(bug *Bug, agentID string) error
func (ProcessFile) GenerateComms ¶
func (p ProcessFile) GenerateComms(bug *Bug) error
func (ProcessFile) GenerateTicket ¶
func (p ProcessFile) GenerateTicket(bug *Bug) error
func (ProcessFile) Parse ¶
func (p ProcessFile) Parse(request events.APIGatewayProxyRequest) (Response, error)
func (ProcessFile) Report ¶
func (p ProcessFile) Report() (Response, error)
Click to show internal directories.
Click to hide internal directories.