Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimeout = jsonrpc2.NewError(0, "TIMEOUT") ErrForbidden = jsonrpc2.NewError(3, "FORBIDDEN") ErrMaintenance = jsonrpc2.NewError(4, "MAINTENANCE") ErrRemoteServer = jsonrpc2.NewError(5, "REMOTE_SERVER_UNAVAILABLE") )
Global error codes
View Source
var ( ErrCredentials = jsonrpc2.NewError(102, "INVALID_CREDENTIALS") ErrTrackerType = jsonrpc2.NewError(103, "INVALID_TRACKER_TYPE") ErrTrackerURL = jsonrpc2.NewError(104, "INVALID_TRACKER_URL") ErrIssueURL = jsonrpc2.NewError(105, "INVALID_ISSUE_URL") ErrProjectNotFound = jsonrpc2.NewError(106, "PROJECT_NOT_FOUND") ErrIssueNotFound = jsonrpc2.NewError(107, "ISSUE_NOT_FOUND") )
Tracker services error codes
Functions ¶
func NewTrackerValidationErr ¶
NewTrackerValidationErr return new tracker validation error with message
Types ¶
type Issue ¶
type Issue struct { ID IssueID ProjectID ProjectID `json:"-"` Type TypeID Title string Description string Estimate int64 DueDate int64 Done Progress Spent int64 URL string }
Issue representation in our system
type NewIssue ¶
type NewIssue struct { Issue // Be carefule with NewIssue type // Type field inside Issue will be empty // We have only id of Type with NewIssue Type int64 }
NewIssue differs from the Issye in a Type field. Type field is int64 type. And Type field inside issue will be empty.
type Pagination ¶
Pagination used for pagination info in corresponding requests
type Project ¶
type Project struct { ID ProjectID Title string Link string Description string IssueTypes []TypeID ActivityTypes []TypeID }
Project representation in our system
type Report ¶
type Report struct { IssueID IssueID ActivityID int64 Comments string Duration int64 Started int64 }
Report represents time report and additional information
type Tracker ¶
type Tracker struct { ID int64 URL string Type string Credentials Credentials }
Tracker representation in our system
Click to show internal directories.
Click to hide internal directories.