cloud

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	BufferSize: 32,
}

Functions

This section is empty.

Types

type Config added in v1.3.1

type Config struct {
	BufferSize uint
}

type GCPStreamer

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

func NewGCPStreamer

func NewGCPStreamer(log zerolog.Logger, bucket *storage.BucketHandle, options ...Option) *GCPStreamer

func (*GCPStreamer) Next

func (g *GCPStreamer) Next() (*uploader.BlockData, error)

func (*GCPStreamer) OnBlockFinalized

func (g *GCPStreamer) OnBlockFinalized(blockID flow.Identifier)

OnBlockFinalized is a callback for the Flow consensus follower. It is called each time a block is finalized by the Flow consensus algorithm.

type Option added in v1.3.1

type Option func(*Config)

func WithBufferSize added in v1.3.1

func WithBufferSize(size uint) Option

Jump to

Keyboard shortcuts

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