client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: GPL-3.0 Imports: 9 Imported by: 1

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 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

type GithubIssueCreated added in v1.1.0

type GithubIssueCreated struct {
	IssueId string `json:"issueId"`
}

GithubIssueCreated represents successful response (issue created)

Jump to

Keyboard shortcuts

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