contentfile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToPointer

func StringToPointer(in string) *string

Types

type ContentFileReader

type ContentFileReader interface {
	// contains filtered or unexported methods
}

func NewCsvFileReader

func NewCsvFileReader(skipHeader bool) ContentFileReader

func NewJsonFileReader

func NewJsonFileReader() ContentFileReader

type CsvFileReader

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

type JsonFileReader

type JsonFileReader struct {
}

type Provider

type Provider struct {
	CacheClient cache.Client
	Config      config.Config
	FileReader  ContentFileReader
}

func NewProvider

func NewProvider(cfg config.Config, cacheClient cache.Client) (Provider, error)

func (Provider) GetContentToPublish

func (p Provider) GetContentToPublish() (*domain.Content, error)

GetContentToPublish returns content to publish to be used by the publishers

Jump to

Keyboard shortcuts

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