storage

package
v1.0.1-rc.19 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBulkInserter

type EventBulkInserter interface {
	BulkInsert(r []kubeClientModel.Event, collection string) error
}

type EventInserter

type EventInserter interface {
	Insert(r *kubeClientModel.Event, collection string) error
}

type RecordBuffer

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

func NewRecordBuffer

func NewRecordBuffer(cfg RecordBufferConfig) *RecordBuffer

func (*RecordBuffer) RunCollection

func (rb *RecordBuffer) RunCollection(collection string)

func (*RecordBuffer) Stop

func (rb *RecordBuffer) Stop()

type RecordBufferConfig

type RecordBufferConfig struct {
	Storage         EventBulkInserter
	BufferCap       int
	InsertPeriod    time.Duration
	MinInsertEvents int
	Collector       <-chan kubeClientModel.Event
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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