Documentation
¶
Index ¶
- type API
- func (a *API) Process(id string, submission *t_api.Request) (*t_api.Response, *Error)
- func (a *API) SearchPromises(id string, state string, tags map[string]string, limit int, cursor string) (*t_api.SearchPromisesRequest, *Error)
- func (a *API) SearchSchedules(id string, tags map[string]string, limit int, cursor string) (*t_api.SearchSchedulesRequest, *Error)
- func (a *API) TaskProcessId(id string, counter int) string
- func (a *API) ValidateCron(cron string) *Error
- type Error
- type ErrorDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) SearchPromises ¶
func (*API) SearchSchedules ¶
func (*API) ValidateCron ¶
type Error ¶
type Error struct { // Code is the internal code that indicates the type of error Code t_api.StatusCode `json:"code,omitempty"` // Message is the error message Message string `json:"message,omitempty"` // Details is a list of details about the error Details []*ErrorDetails `json:"details,omitempty"` }
func RequestError ¶
func RequestError(status t_api.StatusCode) *Error
func RequestValidationError ¶
func ServerError ¶
type ErrorDetails ¶
type ErrorDetails struct { // Type is the specific error type Type string `json:"@type,omitempty"` // Message is a human readable description of the error Message string `json:"message,omitempty"` // Domain is the domain of the error Domain string `json:"domain,omitempty"` // Metadata is additional information about the error Metadata map[string]string `json:"metadata,omitempty"` }
Click to show internal directories.
Click to hide internal directories.