providers

package
v0.0.0-...-1437401 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 2

README

Solutions

a solution is something that is used to feed the database with posts. A solution should expose surtain functions which the code reads.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers = make(map[string]Provider)

Functions

func RegisterProvider

func RegisterProvider(key string, config ProviderTypes.Provider, posts Posts)

Register a new provider

func RegisterProviders

func RegisterProviders()

func Setup

func Setup()

func SyncAllProviders

func SyncAllProviders()

func SyncProvider

func SyncProvider(key string)

Types

type Posts

type Posts func() ([]ProviderTypes.Post, error)

type Provider

type Provider struct {
	Config ProviderTypes.Provider
	Posts  Posts
}

type ProviderSolution

type ProviderSolution struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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