engine

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 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(cfg *config.Config) *ChannelEngine

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 {
	Start() error
	Stop() error
	Send(event *message.Entry)
}

Jump to

Keyboard shortcuts

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