microkernel

package
v0.0.0-...-e1bd20a Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func (*Agent) OnEvent

func (agt *Agent) OnEvent(evt Event)

OnEvent EventReceiver OnEvent

func (*Agent) Start

func (agt *Agent) Start() error

type Collector

type Collector interface {
	Init(evtReceiver EventReceiver) error
	Start(agtCtx context.Context) error
	Stop() error
	Destory() error
}

type EventReceiver

type EventReceiver interface {
	OnEvent(evt Event)
}

Jump to

Keyboard shortcuts

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