Documentation ¶
Index ¶
- type BugReport
- type CreateBugReportResponse
- type Reporter
- func (r *Reporter) NewBugReport(report BugReport) (*CreateBugReportResponse, *apierror.APIError, error)
- func (r *Reporter) NewIntercomIssue(report UserReport) (*feedback.CreateIntercomIssueResponse, *apierror.APIError, error)
- func (r *Reporter) NewIssue(report BugReport) (*feedback.CreateGithubIssueResponse, *apierror.APIError, error)
- type UserReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BugReport ¶
BugReport represents user input when submitting an issue report swagger:model BugReport
type CreateBugReportResponse ¶
type CreateBugReportResponse struct { Message string `json:"message"` Email string `json:"email"` Identity string `json:"identity"` NodeCountry string `json:"node_country"` IpType string `json:"ip_type"` Ip string `json:"ip"` }
CreateBugReportResponse response for bug report creation swagger:model CreateBugReportResponse
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter reports issues from users
func NewReporter ¶
func NewReporter( logCollector logCollector, identityProvider identityProvider, originResolver location.OriginResolver, feedbackURL string, ) (*Reporter, error)
NewReporter constructs a new Reporter
func (*Reporter) NewBugReport ¶
func (r *Reporter) NewBugReport(report BugReport) (*CreateBugReportResponse, *apierror.APIError, error)
NewBugReport creates a new bug report and returns the message that can be sent to intercom
func (*Reporter) NewIntercomIssue ¶
func (r *Reporter) NewIntercomIssue(report UserReport) (*feedback.CreateIntercomIssueResponse, *apierror.APIError, error)
NewIntercomIssue sends node logs, Identity and UserReport to intercom
type UserReport ¶
type UserReport struct { BugReport UserId string `json:"user_id"` UserType string `json:"user_type"` }
UserReport represents user input when submitting an issue report swagger:model UserReport
func (*UserReport) Validate ¶
func (ur *UserReport) Validate() *apierror.APIError
Validate validate UserReport
Click to show internal directories.
Click to hide internal directories.