Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFeedType ¶
type CloudFeedType struct { ID uint `json:"id"` Name string `json:"name"` AuthorizationURL string `json:"authorization_url"` TokenURL string `json:"token_url"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret,omitempty"` Scope string `json:"scope"` RedirectURL string `json:"redirect_url"` CloudFeeds []cloudfeed.CloudFeed `json:"-"` }
A CloudFeedType is an external online data source.
func MakeCloudFeedType ¶
func MakeCloudFeedType(name, authorizationURL, tokenURL, clientID, clientSecret, scope, redirectURL string) CloudFeedType
Create a new CloudFeedType.
type CloudFeedTypeRepository ¶
type CloudFeedTypeRepository interface { Find(CloudFeedType) (CloudFeedType, error) GetAll() ([]CloudFeedType, error) Create(CloudFeedType) (CloudFeedType, error) Delete(CloudFeedType) error }
A CloudFeedTypeRepository can load, store and delete cloud feeds.
Click to show internal directories.
Click to hide internal directories.