freezer

package
v0.0.0-...-e11bb24 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package freezer provides freezer support for substrate

Usage

This package support two methods of use. The first is to directly use this package. See the function documentation for more details.

The second method is to use the suburl package. See https://godoc.org/github.com/charlie/substrate/suburl for more information.

Using suburl

The url structure is freezer+s3://bucket/

or freezer+dir://full/path/

On the sink there's an additional url parameter that allows one to specify the server side encryption flag for s3. It currently only supports aes256. It then looks like this: freezer+s3://bucket/path?sse=aes256

The following url parameters are available:

compression - Specifies the type of compression to use.  Valid values are `none` and `snappy`. The default is `none`.
max_unflushed - Specifies the maximum number of unflushed messages.  Default is 1024

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AsyncMessageSinkConfig

type AsyncMessageSinkConfig struct {
	StreamStore          straw.StreamStore
	MaxUnflushedMessages int
	FreezerConfig        freezer.MessageSinkConfig
}

type AsyncMessageSourceConfig

type AsyncMessageSourceConfig struct {
	StreamStore   straw.StreamStore
	FreezerConfig freezer.MessageSourceConfig
}

AsyncMessageSourceConfig is the configuration options for creating a new AsyncMessageSource

Jump to

Keyboard shortcuts

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