data_structures

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 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 Alert deprecated

type Alert struct {
	ID         string            `json:"id"`
	Type       string            `json:"type"`
	Geometry   *geojson.Geometry `json:"geometry"`
	Properties AlertProperties   `json:"properties"`
}

Deprecated: use AlertV2

func (*Alert) GetListOfZones

func (a *Alert) GetListOfZones() []string

type AlertProperties deprecated

type AlertProperties struct {
	AtID          string                       `json:"@id"`
	Type          string                       `json:"@type"`
	ID            string                       `json:"id"`
	AreaDesc      string                       `json:"areaDesc"`
	Geocode       *AlertPropertiesGeocode      `json:"geocode"`
	AffectedZones []string                     `json:"affectedZones"`
	References    []*AlertPropertiesReferences `json:"references"`
	Sent          time.Time                    `json:"sent"`
	Effective     time.Time                    `json:"effective"`
	Onset         time.Time                    `json:"onset"`
	Expires       time.Time                    `json:"expires"`
	Ends          time.Time                    `json:"ends"`
	Status        string                       `json:"status"`
	MessageType   string                       `json:"messageType"`
	Category      string                       `json:"category"`
	Severity      string                       `json:"severity"`
	Certainty     string                       `json:"certainty"`
	Urgency       string                       `json:"urgency"`
	Event         string                       `json:"event"`
	Sender        string                       `json:"sender"`
	SenderName    string                       `json:"senderName"`
	Headline      string                       `json:"headline"`
	Description   string                       `json:"description"`
	Instruction   string                       `json:"instruction"`
	Response      string                       `json:"response"`
	Parameters    AlertPropertiesParameters    `json:"parameters"`
}

Deprecated: use AlertV2

type AlertPropertiesGeocode deprecated

type AlertPropertiesGeocode struct {
	SAME []string `json:"SAME"`
	UGC  []string `json:"UGC"`
}

Deprecated: use AlertV2

type AlertPropertiesGeocodeV2 added in v4.3.0

type AlertPropertiesGeocodeV2 struct {
	SAME []string `json:"SAME"`
	UGC  []string `json:"UGC"`
}

type AlertPropertiesParameters deprecated

type AlertPropertiesParameters struct {
	AWIPSIdentifier   []string `json:"AWIPSidentifier"`
	WMOIdentifier     []string `json:"WMOidentifier"`
	NWSHeadline       []string `json:"NWSheadline"`
	BlockChannel      []string `json:"BLOCKCHANNEL"`
	VTEC              []string `json:"VTEC"`
	ExpiredReferences []string `json:"expiredReferences"`
}

Deprecated: use AlertV2

type AlertPropertiesReferences deprecated

type AlertPropertiesReferences struct {
	AtID       string    `json:"@id"`
	Identifier string    `json:"identifier"`
	Sender     string    `json:"sender"`
	Sent       time.Time `json:"sent"`
}

Deprecated: use AlertV2

type AlertV2 added in v4.3.0

type AlertV2 struct {
	ID            string                    `json:"id"`
	Type          string                    `json:"type"`
	Geometry      *geojson_v2.Geometry      `json:"geometry"`
	AreaDesc      string                    `json:"areaDesc"`
	Geocode       *AlertPropertiesGeocodeV2 `json:"geocode"`
	AffectedZones []string                  `json:"affectedZones"`
	References    []string                  `json:"references"`
	Sent          time.Time                 `json:"sent"`
	Effective     time.Time                 `json:"effective"`
	Onset         time.Time                 `json:"onset"`
	Expires       time.Time                 `json:"expires"`
	Ends          time.Time                 `json:"ends"`
	Status        string                    `json:"status"`
	MessageType   string                    `json:"messageType"`
	Category      string                    `json:"category"`
	Severity      string                    `json:"severity"`
	Certainty     string                    `json:"certainty"`
	Urgency       string                    `json:"urgency"`
	Event         string                    `json:"event"`
	Sender        string                    `json:"sender"`
	SenderName    string                    `json:"senderName"`
	Headline      string                    `json:"headline"`
	Description   string                    `json:"description"`
	Instruction   string                    `json:"instruction"`
	Response      string                    `json:"response"`
	Parameters    map[string]interface{}    `json:"parameters"`
}

type ConvectiveOutlook deprecated

type ConvectiveOutlook struct {
	Type          string                       `json:"type"`
	PublishedTime time.Time                    `json:"publishedTime"`
	OutlookType   golang.ConvectiveOutlookType `json:"outlookType"`
	Features      []ConvectiveOutlookFeature   `json:"features"`
}

Deprecated: use ConvectiveOutlookV2

type ConvectiveOutlookFeature deprecated

type ConvectiveOutlookFeature struct {
	Type       string                             `json:"type"`
	Geometry   *geojson.Geometry                  `json:"geometry"`
	Properties ConvectiveOutlookFeatureProperties `json:"properties"`
}

Deprecated: use ConvectiveOutlookV2

type ConvectiveOutlookFeatureProperties deprecated

type ConvectiveOutlookFeatureProperties struct {
	DN     int       `json:"DN"`
	Valid  time.Time `json:"VALID"`
	Expire time.Time `json:"EXPIRE"`
	Issue  time.Time `json:"ISSUE"`
	Label  string    `json:"LABEL"`
	Label2 string    `json:"LABEL2"`
	Stroke string    `json:"stroke"`
	Fill   string    `json:"fill"`
}

Deprecated: use ConvectiveOutlookV2

type ConvectiveOutlookV2 added in v4.3.0

type ConvectiveOutlookV2 struct {
	ID          string                       `json:"id"`
	OutlookType golang.ConvectiveOutlookType `json:"outlookType"`
	Geometry    *geojson_v2.Geometry         `json:"geometry"`
	DN          int                          `json:"dn"`
	Valid       time.Time                    `json:"valid"`
	Expires     time.Time                    `json:"expires"`
	Issued      time.Time                    `json:"issued"`
	Label       string                       `json:"label"`
	Label2      string                       `json:"label2"`
	Stroke      string                       `json:"stroke"`
	Fill        string                       `json:"fill"`
}

type Device added in v4.2.0

type Device struct {
	DeviceId  string `json:"deviceId"`
	UserId    string `json:"userId"`
	APNSToken string `json:"apnsToken"`
}

type MesoscaleDiscussion deprecated

type MesoscaleDiscussion struct {
	MDNumber     int
	Year         int
	AffectedArea *geojson.Polygon
	RawText      string
}

Deprecated: use MesoscaleDiscussionV2

type MesoscaleDiscussionV2 added in v4.3.0

type MesoscaleDiscussionV2 struct {
	ID                         string               `json:"id"`
	Number                     int                  `json:"number"`
	Year                       int                  `json:"year"`
	Geometry                   *geojson_v2.Geometry `json:"geometry"`
	RawText                    string               `json:"rawText"`
	ProbabilityOfWatchIssuance *int                 `json:"probabilityOfWatchIssuance"`
	Effective                  *time.Time           `json:"effective"`
	Expires                    *time.Time           `json:"expires"`
}

type NotificationType added in v4.3.0

type NotificationType string
const (
	AlertType               NotificationType = "alert"
	ConvectiveOutlookType   NotificationType = "convectiveOutlook"
	MesoscaleDiscussionType NotificationType = "mesoscaleDiscussion"
)

type NotificationUpdate deprecated

type NotificationUpdate struct {
	Alert               *Alert               `json:"alert,omitempty"`
	ConvectiveOutlook   *ConvectiveOutlook   `json:"convectiveOutlook,omitempty"`
	MesoscaleDiscussion *MesoscaleDiscussion `json:"mesoscaleDiscussion,omitempty"`
}

Deprecated: use NotificationUpdateV2

type NotificationUpdateV2 added in v4.3.0

type NotificationUpdateV2 struct {
	Id               string           `json:"id"`
	NotificationType NotificationType `json:"notificationType"`
}

type UserNotification

type UserNotification struct {
	NotificationId                   string                         `json:"notificationId"`
	UserID                           string                         `json:"userid"`
	ZoneCode                         string                         `json:"zonecode"`
	CountyCode                       string                         `json:"countycode"`
	CreationTime                     time.Time                      `json:"creationtime"`
	Lat                              float64                        `json:"lat"`
	Lng                              float64                        `json:"lng"`
	FormattedAddress                 string                         `json:"formattedaddress"`
	APNKey                           string                         `json:"apnKey"`
	LocationName                     string                         `json:"locationName"`
	ConvectiveOutlookOptions         []golang.ConvectiveOutlookType `json:"convectiveOutlookOptions"`
	AlertOptions                     []golang.AlertType             `json:"alertOptions"`
	MesoscaleDiscussionNotifications bool                           `json:"mesoscaleDiscussionNotifications"`
	LiveActivities                   bool                           `json:"liveActivities"`
	IsDeviceLocation                 bool                           `json:"isDeviceLocation"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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