Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackTrace ¶
type BackTrace struct { File string `json:"file"` Line int `json:"line"` Column int `json:"column"` Func string `json:"function"` }
BackTrace stackTrace
type Context ¶
type Context struct { // エラーになったURL等 URL string `json:"url"` // TODO: 未使用? SourceMapEnabled bool `json:"sourceMapEnabled"` // Where // Controllerなどを指定 Component string `json:"component"` // Controllerのメソッド等を指定(Handler) Action string `json:"action"` // AppServerの情報 Language string `json:"language"` Version string `json:"version"` // User情報 User RootDirectory string `json:"rootDirectory"` }
Context context
type ErrorReport ¶
type ErrorReport struct { ErrorType string `json:"type"` Message string `json:"message"` Backtrace []BackTrace `json:"backtrace"` }
ErrorReport エラー情報
type Notice ¶
type Notice struct { Notifier Notifier `json:"notifier"` Context Context `json:"context"` Errors []ErrorReport `json:"errors"` // optional Env map[string]interface{} `json:"environment"` Params map[string]interface{} `json:"params"` Session map[string]interface{} `json:"session"` }
Notice error内容
func (*Notice) SetEnvRuntime ¶
func (n *Notice) SetEnvRuntime()
SetEnvRuntime setup context and env default runtime.
func (*Notice) SetHTTPRequest ¶
SetHTTPRequest http.Requestの内容を通知内容に設定します
func (*Notice) SetProfiles ¶
func (n *Notice) SetProfiles()
Click to show internal directories.
Click to hide internal directories.