entity

package
v0.0.0-...-5f2f827 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatState

type ChatState struct {
	ChatID       int64
	AwaitInput   string
	DisableInput bool
}

type ChatStateUpdate

type ChatStateUpdate struct {
	AwaitInput   string
	DisableInput bool
}

type EventData

type EventData struct {
	Magnitude float64
	Delay     float64
	Location  Location
	Source    SourceID
}

type Location

type Location struct {
	Lat, Lng float64
}

type SourceID

type SourceID string
const (
	EMSC   SourceID = "EMSC"
	EMSCWS SourceID = "EMSCWS"
	USGS   SourceID = "USGS"
	IRIS   SourceID = "IRIS"
	USPBR  SourceID = "USPBR"
	GEOFON SourceID = "GEOFON"
)

func ToSources

func ToSources(s []string) []SourceID

type SourceIDs

type SourceIDs []SourceID

func (SourceIDs) ToStrings

func (srcs SourceIDs) ToStrings() []string

type Subscription

type Subscription struct {
	ChatID   int64
	SubID    string
	Name     string
	MinMag   float64
	Delay    float64
	Location *Location
	Radius   float64
	Sources  []SourceID
}

type SubscriptionUpdate

type SubscriptionUpdate struct {
	Name     string
	MinMag   float64
	Delay    float64
	Location *Location
	Radius   float64
	Sources  []SourceID
}

Jump to

Keyboard shortcuts

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