sources

package
v0.0.0-...-2610577 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service allows to add new article's sources. For example, a single article, or a feed.

func NewService

func NewService(
	articlesService articlesService,
	feedsService feedsService,
	operationsService operationsService,
	fetch fetch.Fetcher) *Service

NewService returns new sources instance.

func (*Service) CreateSource

func (s *Service) CreateSource(ctx context.Context, request *sources.CreateSourceRequest) (*longrunning.Operation, error)

CreateSource creates a new source.

Jump to

Keyboard shortcuts

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