event

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	DataExists bool
	Data       string
	Id         string
	Event      string
	Retry      time.Duration
	Ending     bool
}

type Events

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

func NewEvents

func NewEvents() *Events

func (*Events) Append

func (e *Events) Append(evt *Event)

func (*Events) Close

func (e *Events) Close()

func (*Events) SetPrems added in v0.2.0

func (e *Events) SetPrems(prems func(context.Context) *Event)

func (*Events) Since

func (e *Events) Since(since int) []*Event

func (*Events) Size

func (e *Events) Size() int

func (*Events) Subscribe

func (e *Events) Subscribe(ctx context.Context, since int) chan *Event

Jump to

Keyboard shortcuts

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