report

package
v0.0.0-...-92f16ca Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log_levels = map[string][]string{"Ios": []string{"Critical", "Error", "Warning", "Notice", "Info", "Debug", "Trace"},
		"my-android-bucket": []string{"Assert", "Error", "Warning", "Info", "Debug", "Verbose"}}
)

Functions

func AnalyseLog

func AnalyseLog(w http.ResponseWriter, r *http.Request, project_id string, region_id string, fullLogDetails *FullDetails, cfgFile *Config) error

func CountLine

func CountLine(content string) int

func GetLogLeveldetails

func GetLogLeveldetails(platform string, level string, fContent string) string

func LogReport

func LogReport(w http.ResponseWriter, r *http.Request, fullLogDetails *FullDetails, cfgFile *Config)

Types

type AnalysisDetails

type AnalysisDetails struct {
	FileName        string
	RawLog          string
	SpecificProcess map[string]string
	Header          []string
	OrderedIssues   []string
	Issues          map[string]map[string]string
	Platform        string
}

type Config

type Config struct {
	SpecificProcess     map[string]string
	IssuesGeneralFields struct {
		Number      string
		Details     string
		Timestamp   string
		Log_level   string
		OtherFields map[string]string
	}
	Issues          map[string]Issue
	Priority        map[string]int
	ImportantEvents map[string]string
}

type ConfigInterface

type ConfigInterface struct {
	SpecificProcess     map[string]string `yaml:"SpecificProcess"`
	IssuesGeneralFields struct {
		Number      string            `yaml:"Number"`
		Details     string            `yaml:"Details"`
		Timestamp   string            `yaml:"Timestamp"`
		Log_level   string            `yaml:"LogLevel"`
		OtherFields map[string]string `yaml:"OtherFields"`
	} `yaml:"IssuesGeneralFields"`
	Issues          map[string]interface{} `yaml:"Issues"`
	Priority        map[string]int         `yaml:"Priority"`
	ImportantEvents map[string]string      `yaml:"ImportantEvents"`
}

type FullDetails

type FullDetails struct {
	Analysis_details AnalysisDetails
	GroupedIssues    map[string]GroupedStruct
	NonGroupedIssues map[string]map[string]bool
	ImportantEvents  map[int]string
}

type GroupedStruct

type GroupedStruct struct {
	Group_names   []string
	Group_content map[string][][]string
	Group_count   map[string][]int
}

type Issue

type Issue struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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