Documentation ¶
Overview ¶
Package baleen is the top level library of the baleen language ingestion service. This library provides the primary components for running the service as a long running background daemon including the main service itself, configuration and other utilities.
Index ¶
- Constants
- Variables
- func CreateEnsignPublisher(conf config.EnsignConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
- func CreateEnsignSubscriber(conf config.EnsignConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
- func CreateKafkaPublisher(conf config.KafkaConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
- func CreateKafkaSubscriber(conf config.KafkaConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
- func CreatePublisher(conf config.PublisherConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
- func CreateSubscriber(conf config.SubscriberConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
- func PostFetch(msg *message.Message) (_ []*message.Message, err error)
- func TypeFilter(mime string, etypes ...string) message.HandlerMiddleware
- func Version() string
- type Baleen
- type Feed
- type FeedSync
- type Manifest
Constants ¶
View Source
const ( TopicSubscriptions = "subscriptions" TopicFeeds = "feeds" TopicDocuments = "documents" )
Names of available topics
View Source
const ( VersionMajor = 0 VersionMinor = 2 VersionPatch = 3 VersionReleaseLevel = "beta" VersionReleaseNumber = 5 )
Version component constants for the current build.
Variables ¶
View Source
var ( ErrUnhandledType = errors.New("ensign type not handled") ErrUnhandledMIME = errors.New("ensign mimetype not handled") )
View Source
var GitVersion string
Set the GitVersion via -ldflags="-X 'github.com/rotationalio/baleen/pkg.GitVersion=$(git rev-parse --short HEAD)'"
Functions ¶
func CreateEnsignPublisher ¶
func CreateEnsignPublisher(conf config.EnsignConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
func CreateEnsignSubscriber ¶
func CreateEnsignSubscriber(conf config.EnsignConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
func CreateKafkaPublisher ¶
func CreateKafkaPublisher(conf config.KafkaConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
func CreateKafkaSubscriber ¶
func CreateKafkaSubscriber(conf config.KafkaConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
func CreatePublisher ¶
func CreatePublisher(conf config.PublisherConfig, logger watermill.LoggerAdapter) (message.Publisher, error)
func CreateSubscriber ¶
func CreateSubscriber(conf config.SubscriberConfig, logger watermill.LoggerAdapter) (message.Subscriber, error)
func TypeFilter ¶
func TypeFilter(mime string, etypes ...string) message.HandlerMiddleware
Types ¶
type Baleen ¶
type Baleen struct {
// contains filtered or unexported fields
}
Baleen is essentially a wrapper for a watermill router that configures different event handlers depending on the context of the process. Calling Run() will start the Baleen service, which will handle incoming events and dispatch new events.
func (*Baleen) AddFeedSync ¶
func (*Baleen) AddPostFetch ¶
func (s *Baleen) AddPostFetch(conf config.PostFetchConfig) error
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
baleen
Package main serves as the primary entry point for launching the Baleen command line application.
|
Package main serves as the primary entry point for launching the Baleen command line application. |
Package events provides data serialization for Baleen-specific events using message pack - a binary JSON compatible serialization format.
|
Package events provides data serialization for Baleen-specific events using message pack - a binary JSON compatible serialization format. |
Package fetch provides a stateful interface for routinely fetching resources from the web.
|
Package fetch provides a stateful interface for routinely fetching resources from the web. |
Package opml implements parsing support for Outline Processor Markup Language - an XML format for creating outlines.
|
Package opml implements parsing support for Outline Processor Markup Language - an XML format for creating outlines. |
Package store contains functions for writing parsed feeds to cloud storage.
|
Package store contains functions for writing parsed feeds to cloud storage. |
Click to show internal directories.
Click to hide internal directories.