Documentation ¶
Overview ¶
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Code generated by github.com/dashotv/golem. DO NOT EDIT.
Index ¶
- type Client
- type Page
- type PageCreateRequest
- type PageCreateResponse
- type PageDeleteRequest
- type PageDeleteResponse
- type PageIndexRequest
- type PageIndexResponse
- type PageRefreshRequest
- type PageRefreshResponse
- type PageService
- func (s *PageService) Create(ctx context.Context, req *PageCreateRequest) (*PageCreateResponse, error)
- func (s *PageService) Delete(ctx context.Context, req *PageDeleteRequest) (*PageDeleteResponse, error)
- func (s *PageService) Index(ctx context.Context, req *PageIndexRequest) (*PageIndexResponse, error)
- func (s *PageService) Refresh(ctx context.Context, req *PageRefreshRequest) (*PageRefreshResponse, error)
- func (s *PageService) Settings(ctx context.Context, req *PageSettingsRequest) (*PageSettingsResponse, error)
- func (s *PageService) Show(ctx context.Context, req *PageShowRequest) (*PageShowResponse, error)
- func (s *PageService) Update(ctx context.Context, req *PageUpdateRequest) (*PageUpdateResponse, error)
- func (s *PageService) Videos(ctx context.Context, req *PageVideosRequest) (*PageVideosResponse, error)
- func (s *PageService) Visits(ctx context.Context, req *PageVisitsRequest) (*PageVisitsResponse, error)
- type PageSettingsRequest
- type PageSettingsResponse
- type PageShowRequest
- type PageShowResponse
- type PageUpdateRequest
- type PageUpdateResponse
- type PageVideosRequest
- type PageVideosResponse
- type PageVisitsRequest
- type PageVisitsResponse
- type Response
- type Setting
- type SettingsBatch
- type Video
- type VideoCreateRequest
- type VideoCreateResponse
- type VideoDeleteRequest
- type VideoDeleteResponse
- type VideoIndexRequest
- type VideoIndexResponse
- type VideoService
- func (s *VideoService) Create(ctx context.Context, req *VideoCreateRequest) (*VideoCreateResponse, error)
- func (s *VideoService) Delete(ctx context.Context, req *VideoDeleteRequest) (*VideoDeleteResponse, error)
- func (s *VideoService) Index(ctx context.Context, req *VideoIndexRequest) (*VideoIndexResponse, error)
- func (s *VideoService) Settings(ctx context.Context, req *VideoSettingsRequest) (*VideoSettingsResponse, error)
- func (s *VideoService) Show(ctx context.Context, req *VideoShowRequest) (*VideoShowResponse, error)
- func (s *VideoService) Update(ctx context.Context, req *VideoUpdateRequest) (*VideoUpdateResponse, error)
- type VideoSettingsRequest
- type VideoSettingsResponse
- type VideoShowRequest
- type VideoShowResponse
- type VideoUpdateRequest
- type VideoUpdateResponse
- type Visit
- type VisitCreateRequest
- type VisitCreateResponse
- type VisitDeleteRequest
- type VisitDeleteResponse
- type VisitIndexRequest
- type VisitIndexResponse
- type VisitService
- func (s *VisitService) Create(ctx context.Context, req *VisitCreateRequest) (*VisitCreateResponse, error)
- func (s *VisitService) Delete(ctx context.Context, req *VisitDeleteRequest) (*VisitDeleteResponse, error)
- func (s *VisitService) Index(ctx context.Context, req *VisitIndexRequest) (*VisitIndexResponse, error)
- func (s *VisitService) Settings(ctx context.Context, req *VisitSettingsRequest) (*VisitSettingsResponse, error)
- func (s *VisitService) Show(ctx context.Context, req *VisitShowRequest) (*VisitShowResponse, error)
- func (s *VisitService) Update(ctx context.Context, req *VisitUpdateRequest) (*VisitUpdateResponse, error)
- type VisitSettingsRequest
- type VisitSettingsResponse
- type VisitShowRequest
- type VisitShowResponse
- type VisitUpdateRequest
- type VisitUpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // RemoteHost is the URL of the remote server that this Client should // access. RemoteHost string // Debug enables debug on Resty client Debug bool // Resty Resty *resty.Client // Services corresponding to the different endpoints (groups/routes) Page *PageService Video *VideoService Visit *VisitService }
Client is used to access Pace services.
type Page ¶
type Page struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` Name string `bson:"name" json:"name" grimoire:"index"` URL string `bson:"url" json:"url"` Scraper string `bson:"scraper" json:"scraper" grimoire:"index"` Downloader string `bson:"downloader" json:"downloader" grimoire:"index"` Enabled bool `bson:"enabled" json:"enabled"` ProcessedAt time.Time `bson:"processed_at" json:"processed_at"` }
type PageCreateRequest ¶
type PageCreateRequest struct {
Subject *Page `json:"subject"`
}
type PageCreateResponse ¶
type PageDeleteRequest ¶
type PageDeleteRequest struct {
ID string `json:"id"`
}
type PageDeleteResponse ¶
type PageIndexRequest ¶
type PageIndexResponse ¶
type PageRefreshRequest ¶ added in v0.3.4
type PageRefreshRequest struct {
ID string `json:"id"`
}
type PageRefreshResponse ¶ added in v0.3.4
type PageService ¶
type PageService struct {
// contains filtered or unexported fields
}
func NewPageService ¶
func NewPageService(client *Client) *PageService
NewPage makes a new client for accessing Page services.
func (*PageService) Create ¶
func (s *PageService) Create(ctx context.Context, req *PageCreateRequest) (*PageCreateResponse, error)
func (*PageService) Delete ¶
func (s *PageService) Delete(ctx context.Context, req *PageDeleteRequest) (*PageDeleteResponse, error)
func (*PageService) Index ¶
func (s *PageService) Index(ctx context.Context, req *PageIndexRequest) (*PageIndexResponse, error)
func (*PageService) Refresh ¶ added in v0.3.4
func (s *PageService) Refresh(ctx context.Context, req *PageRefreshRequest) (*PageRefreshResponse, error)
func (*PageService) Settings ¶
func (s *PageService) Settings(ctx context.Context, req *PageSettingsRequest) (*PageSettingsResponse, error)
func (*PageService) Show ¶
func (s *PageService) Show(ctx context.Context, req *PageShowRequest) (*PageShowResponse, error)
func (*PageService) Update ¶
func (s *PageService) Update(ctx context.Context, req *PageUpdateRequest) (*PageUpdateResponse, error)
func (*PageService) Videos ¶ added in v0.3.3
func (s *PageService) Videos(ctx context.Context, req *PageVideosRequest) (*PageVideosResponse, error)
func (*PageService) Visits ¶ added in v0.3.4
func (s *PageService) Visits(ctx context.Context, req *PageVisitsRequest) (*PageVisitsResponse, error)
type PageSettingsRequest ¶
type PageSettingsResponse ¶
type PageShowRequest ¶
type PageShowRequest struct {
ID string `json:"id"`
}
type PageShowResponse ¶
type PageUpdateRequest ¶
type PageUpdateResponse ¶
type PageVideosRequest ¶ added in v0.3.3
type PageVideosResponse ¶ added in v0.3.3
type PageVisitsRequest ¶ added in v0.3.4
type PageVisitsResponse ¶ added in v0.3.4
type SettingsBatch ¶ added in v0.3.4
type Video ¶
type Video struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` PageID primitive.ObjectID `bson:"page_id" json:"page_id" grimoire:"index"` Title string `bson:"title" json:"title" grimoire:"index"` Season int `bson:"season" json:"season"` Episode int `bson:"episode" json:"episode"` Raw string `bson:"raw" json:"raw"` DisplayID string `bson:"display_id" json:"display_id"` Extension string `bson:"extension" json:"extension"` Resolution int `bson:"resolution" json:"resolution"` Size int64 `bson:"size" json:"size"` Download string `bson:"download" json:"download"` View string `bson:"view" json:"view"` Source string `bson:"source" json:"source" grimoire:"index"` }
type VideoCreateRequest ¶
type VideoCreateRequest struct {
Subject *Video `json:"subject"`
}
type VideoCreateResponse ¶
type VideoDeleteRequest ¶
type VideoDeleteRequest struct {
ID string `json:"id"`
}
type VideoDeleteResponse ¶
type VideoIndexRequest ¶
type VideoIndexResponse ¶
type VideoService ¶
type VideoService struct {
// contains filtered or unexported fields
}
func NewVideoService ¶
func NewVideoService(client *Client) *VideoService
NewVideo makes a new client for accessing Video services.
func (*VideoService) Create ¶
func (s *VideoService) Create(ctx context.Context, req *VideoCreateRequest) (*VideoCreateResponse, error)
func (*VideoService) Delete ¶
func (s *VideoService) Delete(ctx context.Context, req *VideoDeleteRequest) (*VideoDeleteResponse, error)
func (*VideoService) Index ¶
func (s *VideoService) Index(ctx context.Context, req *VideoIndexRequest) (*VideoIndexResponse, error)
func (*VideoService) Settings ¶
func (s *VideoService) Settings(ctx context.Context, req *VideoSettingsRequest) (*VideoSettingsResponse, error)
func (*VideoService) Show ¶
func (s *VideoService) Show(ctx context.Context, req *VideoShowRequest) (*VideoShowResponse, error)
func (*VideoService) Update ¶
func (s *VideoService) Update(ctx context.Context, req *VideoUpdateRequest) (*VideoUpdateResponse, error)
type VideoSettingsRequest ¶
type VideoSettingsResponse ¶
type VideoShowRequest ¶
type VideoShowRequest struct {
ID string `json:"id"`
}
type VideoShowResponse ¶
type VideoUpdateRequest ¶
type VideoUpdateResponse ¶
type Visit ¶
type Visit struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` //CreatedAt time.Time `bson:"created_at" json:"created_at"` //UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` PageID primitive.ObjectID `bson:"page_id" json:"page_id" grimoire:"index"` URL string `bson:"url" json:"url"` Error string `bson:"error" json:"error"` Stacktrace []string `bson:"stacktrace" json:"stacktrace"` }
type VisitCreateRequest ¶
type VisitCreateRequest struct {
Subject *Visit `json:"subject"`
}
type VisitCreateResponse ¶
type VisitDeleteRequest ¶
type VisitDeleteRequest struct {
ID string `json:"id"`
}
type VisitDeleteResponse ¶
type VisitIndexRequest ¶
type VisitIndexResponse ¶
type VisitService ¶
type VisitService struct {
// contains filtered or unexported fields
}
func NewVisitService ¶
func NewVisitService(client *Client) *VisitService
NewVisit makes a new client for accessing Visit services.
func (*VisitService) Create ¶
func (s *VisitService) Create(ctx context.Context, req *VisitCreateRequest) (*VisitCreateResponse, error)
func (*VisitService) Delete ¶
func (s *VisitService) Delete(ctx context.Context, req *VisitDeleteRequest) (*VisitDeleteResponse, error)
func (*VisitService) Index ¶
func (s *VisitService) Index(ctx context.Context, req *VisitIndexRequest) (*VisitIndexResponse, error)
func (*VisitService) Settings ¶
func (s *VisitService) Settings(ctx context.Context, req *VisitSettingsRequest) (*VisitSettingsResponse, error)
func (*VisitService) Show ¶
func (s *VisitService) Show(ctx context.Context, req *VisitShowRequest) (*VisitShowResponse, error)
func (*VisitService) Update ¶
func (s *VisitService) Update(ctx context.Context, req *VisitUpdateRequest) (*VisitUpdateResponse, error)
type VisitSettingsRequest ¶
type VisitSettingsResponse ¶
type VisitShowRequest ¶
type VisitShowRequest struct {
ID string `json:"id"`
}
type VisitShowResponse ¶
type VisitUpdateRequest ¶
type VisitUpdateResponse ¶
Click to show internal directories.
Click to hide internal directories.