cloudfeed

package
v0.0.0-...-ebd6d4f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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 CloudFeed

type CloudFeed 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"`
	CloudFeedAuths   []cloudfeedauth.CloudFeedAuth `json:"-"`
}

A CloudFeed is an external online data source.

func MakeCloudFeed

func MakeCloudFeed(name, authorizationURL, tokenURL, clientID, clientSecret, scope, redirectURL string) CloudFeed

Create a new CloudFeed.

type CloudFeedRepository

type CloudFeedRepository interface {
	Find(CloudFeed) (CloudFeed, error)
	GetAll() ([]CloudFeed, error)
	Create(CloudFeed) (CloudFeed, error)
	Delete(CloudFeed) error
}

A CloudFeedRepository 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