engine

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelEngine

type ChannelEngine struct {
	OnError func(msg *message.Entry, err error)
	// contains filtered or unexported fields
}

func NewChannelEngine

func NewChannelEngine() *ChannelEngine

func (*ChannelEngine) Init

func (e *ChannelEngine) Init() error

func (*ChannelEngine) Send

func (e *ChannelEngine) Send(entry *message.Entry)

func (*ChannelEngine) Start

func (e *ChannelEngine) Start() error

func (*ChannelEngine) Stop

func (e *ChannelEngine) Stop() (err error)

type IEngine

type IEngine interface {
	Init() error
	Start() error
	Stop() error
	Send(event *message.Entry)
}

func NewEngine

func NewEngine(typ config.EngineType) IEngine

Jump to

Keyboard shortcuts

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