Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config updates #10

Merged
merged 9 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,31 @@ import (
const DefaultJailBaseURL = "https://omsweb.public-safety-cloud.com"

type JailConfig struct {
// How we describe the jail
PrettyName string
// Used in API URLs; the jail's unique identifier in JailTracker
Slug string
// Whether or not we can currently pull data from the jail.
// Jail might require search, consistently times out or errors, etc
Usable bool

/* Optional fields */

// The Title field is currently ignored. This should gradually be broken out to Facility and State.
// It's a relic of the initial data scrape for list of jails.

// Name and state of facility
Facility string
State string
// URL for the jail. Usually "https://omsweb.public-safety-cloud.com", but not always!
BaseURL string
// Used in API URLs
Slug string
// The main public website of the facility itself
FacilityURL string
// JailTracker web page for viewing the roster. Helpful for including in logs for convenient debugging.
IndexURL string
// Some jails allow advance search; JTT isn't using this right now, but it's helpful to know.
// For example, searching by release status
HasAdvancedSearch bool
// Notes on the entry; e.g. why it isn't usable
Notes string
}

type AppConfig struct {
Expand Down
Loading
Loading