cloudfeedtype

package
v0.0.0-...-d1dae27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL