event

package
v0.0.0-...-f1b39ba Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Data []byte
	Type string
	Id   int
}

The Event type represents a Server Sent Event message.

func New

func New(t string, data []byte) *Event

New creates a new event with the given type and data.

func (*Event) String

func (e *Event) String() string

Jump to

Keyboard shortcuts

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