stockpile

package
v0.0.0-...-f51dad4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CassandraRetryTimeout = 2 * time.Second
)

Variables

Functions

func InitLogging

func InitLogging(level string) error

Types

type App

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

func NewApp

func NewApp(consumer *KafkaConsumer, producer *CassandraProducer) *App

func (*App) Start

func (a *App) Start() error

func (*App) Stop

func (a *App) Stop() error

type CassandraProducer

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

func NewCassandraProducer

func NewCassandraProducer(cluster string, keyspace string, schema string) *CassandraProducer

func (*CassandraProducer) Start

func (cp *CassandraProducer) Start(messages <-chan *gonzo.MessageAndMetadata) error

type Executor

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

func NewExecutor

func NewExecutor(app *App) *Executor

func (*Executor) Disconnected

func (e *Executor) Disconnected(executor.ExecutorDriver)

func (*Executor) Error

func (e *Executor) Error(driver executor.ExecutorDriver, message string)

func (*Executor) FrameworkMessage

func (e *Executor) FrameworkMessage(driver executor.ExecutorDriver, message string)

func (*Executor) KillTask

func (e *Executor) KillTask(driver executor.ExecutorDriver, id *mesos.TaskID)

func (*Executor) LaunchTask

func (e *Executor) LaunchTask(driver executor.ExecutorDriver, task *mesos.TaskInfo)

func (*Executor) Registered

func (e *Executor) Registered(driver executor.ExecutorDriver, executor *mesos.ExecutorInfo, framework *mesos.FrameworkInfo, slave *mesos.SlaveInfo)

func (*Executor) Reregistered

func (e *Executor) Reregistered(driver executor.ExecutorDriver, slave *mesos.SlaveInfo)

func (*Executor) Shutdown

func (e *Executor) Shutdown(driver executor.ExecutorDriver)

type KafkaConsumer

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

func NewKafkaConsumer

func NewKafkaConsumer(brokerList []string, topics []string, partitions []int32) *KafkaConsumer

func (*KafkaConsumer) Start

func (kc *KafkaConsumer) Start() (<-chan *gonzo.MessageAndMetadata, error)

Jump to

Keyboard shortcuts

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