stub

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stub is used for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stub

type Stub struct {
	*common.Logger
	// contains filtered or unexported fields
}

Stub is a stub sink

func New

func New(name string, v *viper.Viper, f evf) (*Stub, error)

New creates a new Stub sink

func (*Stub) Close

func (k *Stub) Close() error

Close shuts down sink

func (*Stub) Name

func (k *Stub) Name() string

Name returns Sink's name

func (*Stub) ProcessEventsBatch

func (k *Stub) ProcessEventsBatch(events []event.Event) (err error)

ProcessEventsBatch processess the events batch

func (*Stub) SetLogger

func (k *Stub) SetLogger(l *common.Logger)

SetLogger sets a logger

func (*Stub) Stats

func (k *Stub) Stats() string

Stats returns statistics

func (*Stub) Status

func (k *Stub) Status() error

Status returns the current healthcheck state

func (*Stub) Type

func (k *Stub) Type() string

Type returns Sink's type

Jump to

Keyboard shortcuts

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