event

package
v0.0.0-...-394ddad Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(file string) (*os.File, *bufio.Writer, error)

func GetEvents

func GetEvents(kind string, count int)

func Heading

func Heading(w *bufio.Writer) error

func RR

func RR(f *os.File, b []byte) (int64, int, error)

func Squish

func Squish(file string)

func Write

func Write(w *bufio.Writer, re *regexp.Regexp, r Raw)

func WriteFile

func WriteFile(file string, r []Raw)

Types

type DS

type DS struct {
	File string

	Create  func(string) (*os.File, *bufio.Writer, error)
	Heading func(*bufio.Writer) error
	Write   func(w *bufio.Writer, re *regexp.Regexp, r Raw)
	// contains filtered or unexported fields
}

func NewDS

func NewDS(file string) DS

func (DS) GetLiveXML

func (ds DS) GetLiveXML(kind string, count int)

type Event

type Event struct {
	TimeStamp  time.Time
	Address    []byte
	Boundry    []byte
	Dispatch   []byte
	Incidentno []byte

	Desc         string
	Lat          string
	Lng          string
	NeLat        string
	NeLng        string
	Neighborhood string
	Postal       string
	Station      string
	SwLat        string
	SwLng        string
	Title        string
	// contains filtered or unexported fields
}

type LiveXML

type LiveXML struct {
	TimeStamp time.Time
	Raw       string
}

type Raw

type Raw struct {
	TimeStamp    time.Time
	ActiveAlerts xmlparse.ActiveAlerts
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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