closures

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package closures retrieves beach and road closures related to SpaceX Starship testing in Boca Chica, TX.

Index

Constants

View Source
const (
	// CancelledStatus represents the cancelled Boca Chica Beach status display text.
	CancelledStatus = "Closure Cancelled"

	// ScheduledStatus represents the scheduled Boca Chica Beach status display text.
	ScheduledStatus = "Closure Scheduled"

	// TimeTypeStart represents a Closure's beginning time in a posted time range.
	TimeTypeStart = "start"

	// TimeTypeEnd represents a Closure's ending time in a posted time range.
	TimeTypeEnd = "end"

	// SiteURL is the website publishing the Boca Chica Beach and Road closures.
	SiteURL = "https://www.cameroncounty.us/spacex/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Closure

type Closure struct {
	ClosureType  string
	Date         string
	RawTimeRange string
	Time         int64
	TimeType     string
	Status       string
}

Closure represents a beach and/or road closure notice from the Cameron County SpaceX site.

func Get

func Get() ([]*Closure, error)

Get pulls the current beach/road closures from https://www.cameroncounty.us/spacex/.

func (Closure) String

func (c Closure) String() string

Jump to

Keyboard shortcuts

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