Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGithubIssueRequest ¶
type CreateGithubIssueRequest struct { UserId string `json:"userId"` Description string `json:"description"` Email string `json:"email"` Filepath string `json:"file"` }
CreateGithubIssueRequest create github issue request
type CreateGithubIssueResult ¶ added in v1.1.0
type CreateGithubIssueResult struct { Response *GithubIssueCreated Errors *ErrorResponse HTTPResponse *http.Response Success bool }
CreateGithubIssueResult represents create github issue response (either successful or error)
type CreateIntercomIssueRequest ¶ added in v1.2.0
type CreateIntercomIssueRequest struct { UserId string `json:"userId"` Description string `json:"description"` Email string `json:"email"` Filepath string `json:"file"` NodeIdentity string `json:"nodeIdentity"` UserType string `json:"userType"` NodeCountry string `json:"nodeCountry"` IpType string `json:"ipType"` Ip string `json:"ip"` }
CreateIntercomIssueRequest create intercom issue request
type CreateIntercomIssueResult ¶ added in v1.2.0
type CreateIntercomIssueResult struct { Errors *ErrorResponse HTTPResponse *http.Response Success bool }
CreateIntercomIssueResult represents create intercom issue response (either successful or error)
type Error ¶ added in v1.0.1
type Error struct {
Message string `json:"message"`
}
Error represents a single error in an ErrorResponse
type ErrorResponse ¶ added in v1.0.1
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
ErrorResponse represent HTTP error payload swagger:model
type FeedbackAPI ¶
type FeedbackAPI struct {
// contains filtered or unexported fields
}
FeedbackAPI client to submit user feedback
func NewFeedbackAPI ¶
func NewFeedbackAPI(apiURL string) (*FeedbackAPI, error)
NewFeedbackAPI creates new FeedbackAPI
func (*FeedbackAPI) CreateGithubIssue ¶
func (f *FeedbackAPI) CreateGithubIssue(request CreateGithubIssueRequest) (response *CreateGithubIssueResult, err error)
CreateGithubIssue creates a github issue
func (*FeedbackAPI) CreateIntercomIssue ¶ added in v1.2.0
func (f *FeedbackAPI) CreateIntercomIssue(request CreateIntercomIssueRequest) (response *CreateIntercomIssueResult, err error)
CreateIntercomIssue creates a intercom issue
type GithubIssueCreated ¶ added in v1.1.0
type GithubIssueCreated struct {
IssueId string `json:"issueId"`
}
GithubIssueCreated represents successful response (issue created)