Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { api.DefaultService // contains filtered or unexported fields }
API defines a operations API
type IdentityAPI ¶
type IdentityAPI struct { api.DefaultService // contains filtered or unexported fields }
IdentityAPI defines a schedules/{id} API
func NewIdentityAPI ¶
func NewIdentityAPI(name string, options ...Option) *IdentityAPI
NewIdentityAPI creates a API with sane defaults
func (*IdentityAPI) Delete ¶
Delete defines a service for calling "DELETE" method and returns a response.
type Option ¶
type Option func(*options)
Option to be passed to Connect to customize the resulting instance.
func WithLogger ¶
WithLogger sets the logger on the option
type ScheduleTaskRequest ¶
type ScheduleTaskRequest struct { Query string `json:"query" yaml:"query"` Schedule time.Time `json:"schedule" yaml:"schedule"` }
ScheduleTaskRequest represents a new task
type Task ¶
type Task struct { ID string `json:"id" yaml:"id"` URL string `json:"url" yaml:"url"` Query string `json:"query" yaml:"query"` Schedule time.Time `json:"schedule" yaml:"schedule"` Status string `json:"status" yaml:"status"` StatusCode int `json:"status_code" yaml:"status_code"` Result string `json:"result" yaml:"result"` Err string `json:"err" yaml:"err"` }
Task defines a very lightweight task
Click to show internal directories.
Click to hide internal directories.