Documentation ¶
Index ¶
- type AuburnOfficer
- type BellevueOfficer
- type Client
- func (c *Client) AuburnFuzzySearchByFirstName(firstName string) ([]*AuburnOfficer, error)
- func (c *Client) AuburnFuzzySearchByLastName(lastName string) ([]*AuburnOfficer, error)
- func (c *Client) AuburnFuzzySearchByName(name string) ([]*AuburnOfficer, error)
- func (c *Client) AuburnGetOfficerByBadge(badge string) ([]*AuburnOfficer, error)
- func (c *Client) AuburnOfficerMetadata() *DepartmentMetadata
- func (c *Client) AuburnSearchOfficerByName(firstName, lastName string) ([]*AuburnOfficer, error)
- func (c *Client) BellevueFuzzySearchByFirstName(firstName string) ([]*BellevueOfficer, error)
- func (c *Client) BellevueFuzzySearchByLastName(lastName string) ([]*BellevueOfficer, error)
- func (c *Client) BellevueFuzzySearchByName(name string) ([]*BellevueOfficer, error)
- func (c *Client) BellevueOfficerMetadata() *DepartmentMetadata
- func (c *Client) BellevueSearchOfficerByBadge(badge string) ([]*BellevueOfficer, error)
- func (c *Client) BellevueSearchOfficerByName(firstName, lastName string) ([]*BellevueOfficer, error)
- func (c *Client) LakewoodFuzzySearchByFirstName(firstName string) ([]*LakewoodOfficer, error)
- func (c *Client) LakewoodFuzzySearchByLastName(lastName string) ([]*LakewoodOfficer, error)
- func (c *Client) LakewoodFuzzySearchByName(name string) ([]*LakewoodOfficer, error)
- func (c *Client) LakewoodOfficerMetadata() *DepartmentMetadata
- func (c *Client) LakewoodSearchOfficerByName(firstName, lastName string) ([]*LakewoodOfficer, error)
- func (c *Client) OlympiaFuzzySearchByFirstName(firstName string) ([]*OlympiaOfficer, error)
- func (c *Client) OlympiaFuzzySearchByLastName(lastName string) ([]*OlympiaOfficer, error)
- func (c *Client) OlympiaFuzzySearchByName(name string) ([]*OlympiaOfficer, error)
- func (c *Client) OlympiaGetOfficerByBadge(badge string) ([]*OlympiaOfficer, error)
- func (c *Client) OlympiaOfficerMetadata() *DepartmentMetadata
- func (c *Client) OlympiaSearchOfficerByName(firstName, lastName string) ([]*OlympiaOfficer, error)
- func (c *Client) PortOfSeattleFuzzySearchByName(name string) ([]*PortOfSeattleOfficer, error)
- func (c *Client) PortOfSeattleOfficerMetadata() *DepartmentMetadata
- func (c *Client) PortOfSeattleSearchOfficerByBadge(badge string) ([]*PortOfSeattleOfficer, error)
- func (c *Client) PortOfSeattleSearchOfficerByName(name string) ([]*PortOfSeattleOfficer, error)
- func (c *Client) PortlandFuzzySearchByFirstName(firstName string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandFuzzySearchByLastName(lastName string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandFuzzySearchByName(name string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandOfficerMetadata() *DepartmentMetadata
- func (c *Client) PortlandSearchOfficersByBadge(badge string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandSearchOfficersByEmployeeId(employee_id string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandSearchOfficersByHelmetId(helmet_id string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandSearchOfficersByHelmetIdThreeDigit(helmet_id_three_digit string) ([]*PortlandOfficer, error)
- func (c *Client) PortlandSearchOfficersByName(firstName, lastName string) ([]*PortlandOfficer, error)
- func (c *Client) RentonFuzzySearchByFirstName(firstName string) ([]*RentonOfficer, error)
- func (c *Client) RentonFuzzySearchByLastName(lastName string) ([]*RentonOfficer, error)
- func (c *Client) RentonFuzzySearchByName(name string) ([]*RentonOfficer, error)
- func (c *Client) RentonOfficerMetadata() *DepartmentMetadata
- func (c *Client) RentonSearchOfficerByName(firstName, lastName string) ([]*RentonOfficer, error)
- func (c *Client) SeattleFuzzySearchByFirstName(firstName string) ([]*SeattleOfficer, error)
- func (c *Client) SeattleFuzzySearchByLastName(lastName string) ([]*SeattleOfficer, error)
- func (c *Client) SeattleFuzzySearchByName(name string) ([]*SeattleOfficer, error)
- func (c *Client) SeattleGetOfficerByBadge(badge string) ([]*SeattleOfficer, error)
- func (c *Client) SeattleGetOfficerByBadgeHistorical(badge string) ([]*SeattleOfficer, error)
- func (c *Client) SeattleOfficerMetadata() *DepartmentMetadata
- func (c *Client) SeattleSearchOfficerByName(firstName, lastName string) ([]*SeattleOfficer, error)
- func (c *Client) TacomaFuzzySearchByFirstName(firstName string) ([]*TacomaOfficer, error)
- func (c *Client) TacomaFuzzySearchByLastName(lastName string) ([]*TacomaOfficer, error)
- func (c *Client) TacomaFuzzySearchByName(name string) ([]*TacomaOfficer, error)
- func (c *Client) TacomaOfficerMetadata() *DepartmentMetadata
- func (c *Client) TacomaSearchOfficerByName(firstName, lastName string) ([]*TacomaOfficer, error)
- func (c *Client) ThurstonCountyFuzzySearchByFirstName(firstName string) ([]*ThurstonCountyOfficer, error)
- func (c *Client) ThurstonCountyFuzzySearchByLastName(lastName string) ([]*ThurstonCountyOfficer, error)
- func (c *Client) ThurstonCountyFuzzySearchByName(name string) ([]*ThurstonCountyOfficer, error)
- func (c *Client) ThurstonCountyOfficerMetadata() *DepartmentMetadata
- func (c *Client) ThurstonCountySearchOfficerByName(firstName, lastName string) ([]*ThurstonCountyOfficer, error)
- type DatabaseInterface
- type DepartmentMetadata
- type LakewoodOfficer
- type OlympiaOfficer
- type PortOfSeattleOfficer
- type PortlandOfficer
- type RentonOfficer
- type SearchRouteMetadata
- type SeattleOfficer
- type TacomaOfficer
- type ThurstonCountyOfficer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuburnOfficer ¶
type AuburnOfficer struct { Date string `json:"date,omitempty"` Badge string `json:"badge,omitempty"` Title string `json:"title,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` }
AuburnOfficer is the object model for LPD officers
type BellevueOfficer ¶
type BellevueOfficer struct { LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` Title string `json:"title,omitempty"` Unit string `json:"unit,omitempty"` Notes string `json:"notes,omitempty"` Badge string `json:"badge,omitempty"` }
BellevueOfficer is the object model for BPD officers
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client used to connect to the db
func (*Client) AuburnFuzzySearchByFirstName ¶
func (c *Client) AuburnFuzzySearchByFirstName(firstName string) ([]*AuburnOfficer, error)
AuburnFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) AuburnFuzzySearchByLastName ¶
func (c *Client) AuburnFuzzySearchByLastName(lastName string) ([]*AuburnOfficer, error)
AuburnFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) AuburnFuzzySearchByName ¶
func (c *Client) AuburnFuzzySearchByName(name string) ([]*AuburnOfficer, error)
AuburnFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) AuburnGetOfficerByBadge ¶
func (c *Client) AuburnGetOfficerByBadge(badge string) ([]*AuburnOfficer, error)
AuburnGetOfficerByBadge returns an officer by their badge.
func (*Client) AuburnOfficerMetadata ¶
func (c *Client) AuburnOfficerMetadata() *DepartmentMetadata
AuburnOfficerMetadata retrieves metadata describing the AuburnOfficer struct
func (*Client) AuburnSearchOfficerByName ¶
func (c *Client) AuburnSearchOfficerByName(firstName, lastName string) ([]*AuburnOfficer, error)
AuburnSearchOfficerByName returns an officer by their first or last name.
func (*Client) BellevueFuzzySearchByFirstName ¶
func (c *Client) BellevueFuzzySearchByFirstName(firstName string) ([]*BellevueOfficer, error)
BellevueFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) BellevueFuzzySearchByLastName ¶
func (c *Client) BellevueFuzzySearchByLastName(lastName string) ([]*BellevueOfficer, error)
BellevueFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) BellevueFuzzySearchByName ¶
func (c *Client) BellevueFuzzySearchByName(name string) ([]*BellevueOfficer, error)
BellevueFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) BellevueOfficerMetadata ¶
func (c *Client) BellevueOfficerMetadata() *DepartmentMetadata
BellevueOfficerMetadata retrieves metadata describing the BellevueOfficer struct
func (*Client) BellevueSearchOfficerByBadge ¶
func (c *Client) BellevueSearchOfficerByBadge(badge string) ([]*BellevueOfficer, error)
BellevueSearchOfficerByBadge returns an officer by their first or last name.
func (*Client) BellevueSearchOfficerByName ¶
func (c *Client) BellevueSearchOfficerByName(firstName, lastName string) ([]*BellevueOfficer, error)
BellevueSearchOfficerByName returns an officer by their first or last name.
func (*Client) LakewoodFuzzySearchByFirstName ¶
func (c *Client) LakewoodFuzzySearchByFirstName(firstName string) ([]*LakewoodOfficer, error)
LakewoodFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) LakewoodFuzzySearchByLastName ¶
func (c *Client) LakewoodFuzzySearchByLastName(lastName string) ([]*LakewoodOfficer, error)
LakewoodFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) LakewoodFuzzySearchByName ¶
func (c *Client) LakewoodFuzzySearchByName(name string) ([]*LakewoodOfficer, error)
LakewoodFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) LakewoodOfficerMetadata ¶
func (c *Client) LakewoodOfficerMetadata() *DepartmentMetadata
LakewoodOfficerMetadata retrieves metadata describing the LakewoodOfficer struct
func (*Client) LakewoodSearchOfficerByName ¶
func (c *Client) LakewoodSearchOfficerByName(firstName, lastName string) ([]*LakewoodOfficer, error)
LakewoodSearchOfficerByName returns an officer by their first or last name.
func (*Client) OlympiaFuzzySearchByFirstName ¶
func (c *Client) OlympiaFuzzySearchByFirstName(firstName string) ([]*OlympiaOfficer, error)
OlympiaFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) OlympiaFuzzySearchByLastName ¶
func (c *Client) OlympiaFuzzySearchByLastName(lastName string) ([]*OlympiaOfficer, error)
OlympiaFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) OlympiaFuzzySearchByName ¶
func (c *Client) OlympiaFuzzySearchByName(name string) ([]*OlympiaOfficer, error)
OlympiaFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) OlympiaGetOfficerByBadge ¶
func (c *Client) OlympiaGetOfficerByBadge(badge string) ([]*OlympiaOfficer, error)
OlympiaGetOfficerByBadge returns an officer by their badge.
func (*Client) OlympiaOfficerMetadata ¶
func (c *Client) OlympiaOfficerMetadata() *DepartmentMetadata
OlympiaOfficerMetadata retrieves metadata describing the OlympiaOfficer struct
func (*Client) OlympiaSearchOfficerByName ¶
func (c *Client) OlympiaSearchOfficerByName(firstName, lastName string) ([]*OlympiaOfficer, error)
OlympiaSearchOfficerByName returns an officer by their first or last name.
func (*Client) PortOfSeattleFuzzySearchByName ¶
func (c *Client) PortOfSeattleFuzzySearchByName(name string) ([]*PortOfSeattleOfficer, error)
PortOfSeattleFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) PortOfSeattleOfficerMetadata ¶
func (c *Client) PortOfSeattleOfficerMetadata() *DepartmentMetadata
PortOfSeattleOfficerMetadata retrieves metadata describing the PortOfSeattleOfficer struct
func (*Client) PortOfSeattleSearchOfficerByBadge ¶
func (c *Client) PortOfSeattleSearchOfficerByBadge(badge string) ([]*PortOfSeattleOfficer, error)
PortOfSeattleSearchOfficerByName returns an officer by their name.
func (*Client) PortOfSeattleSearchOfficerByName ¶
func (c *Client) PortOfSeattleSearchOfficerByName(name string) ([]*PortOfSeattleOfficer, error)
PortOfSeattleSearchOfficerByName returns an officer by their name.
func (*Client) PortlandFuzzySearchByFirstName ¶
func (c *Client) PortlandFuzzySearchByFirstName(firstName string) ([]*PortlandOfficer, error)
PortlandFuzzySearchByFirstName invokes portland_fuzzy_search_officer_by_first_name_p
func (*Client) PortlandFuzzySearchByLastName ¶
func (c *Client) PortlandFuzzySearchByLastName(lastName string) ([]*PortlandOfficer, error)
PortlandFuzzySearchByLastName invokes portland_fuzzy_search_officer_by_last_name_p
func (*Client) PortlandFuzzySearchByName ¶
func (c *Client) PortlandFuzzySearchByName(name string) ([]*PortlandOfficer, error)
PortlandFuzzySearchByName invokes portland_fuzzy_search_officer_by_name_p
func (*Client) PortlandOfficerMetadata ¶
func (c *Client) PortlandOfficerMetadata() *DepartmentMetadata
PortlandOfficerMetadata retrieves metadata describing the PortlandOfficer struct
func (*Client) PortlandSearchOfficersByBadge ¶
func (c *Client) PortlandSearchOfficersByBadge(badge string) ([]*PortlandOfficer, error)
PortlandSearchOfficersByBadge invokes portland_search_officer_by_badge_p
func (*Client) PortlandSearchOfficersByEmployeeId ¶
func (c *Client) PortlandSearchOfficersByEmployeeId(employee_id string) ([]*PortlandOfficer, error)
PortlandGetOfficerByEmployeeId invokes portland_search_officer_by_employee_p
func (*Client) PortlandSearchOfficersByHelmetId ¶
func (c *Client) PortlandSearchOfficersByHelmetId(helmet_id string) ([]*PortlandOfficer, error)
PortlandGetOfficerByHelmetId invokes portland_search_officer_by_helmet_p
func (*Client) PortlandSearchOfficersByHelmetIdThreeDigit ¶
func (c *Client) PortlandSearchOfficersByHelmetIdThreeDigit(helmet_id_three_digit string) ([]*PortlandOfficer, error)
PortlandGetOfficerByHelmetIdThreeDigit invokes portland_search_officer_by_helmet_p
func (*Client) PortlandSearchOfficersByName ¶
func (c *Client) PortlandSearchOfficersByName(firstName, lastName string) ([]*PortlandOfficer, error)
PortlandSearchOfficerByName invokes portland_search_officer_by_name_p
func (*Client) RentonFuzzySearchByFirstName ¶
func (c *Client) RentonFuzzySearchByFirstName(firstName string) ([]*RentonOfficer, error)
RentonFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) RentonFuzzySearchByLastName ¶
func (c *Client) RentonFuzzySearchByLastName(lastName string) ([]*RentonOfficer, error)
RentonFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) RentonFuzzySearchByName ¶
func (c *Client) RentonFuzzySearchByName(name string) ([]*RentonOfficer, error)
RentonFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) RentonOfficerMetadata ¶
func (c *Client) RentonOfficerMetadata() *DepartmentMetadata
RentonOfficerMetadata retrieves metadata describing the RentonOfficer struct
func (*Client) RentonSearchOfficerByName ¶
func (c *Client) RentonSearchOfficerByName(firstName, lastName string) ([]*RentonOfficer, error)
RentonSearchOfficerByName returns an officer by their first or last name.
func (*Client) SeattleFuzzySearchByFirstName ¶
func (c *Client) SeattleFuzzySearchByFirstName(firstName string) ([]*SeattleOfficer, error)
SeattleFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. It searches the full historical roster list but only returns the last availabe roster entry. Entries are sorted by date in descending order.
func (*Client) SeattleFuzzySearchByLastName ¶
func (c *Client) SeattleFuzzySearchByLastName(lastName string) ([]*SeattleOfficer, error)
SeattleFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. It searches the full historical roster list but only returns the last availabe roster entry. Entries are sorted by date in descending order.
func (*Client) SeattleFuzzySearchByName ¶
func (c *Client) SeattleFuzzySearchByName(name string) ([]*SeattleOfficer, error)
SeattleFuzzySearchByName returns an list of officers by their full name using fuzzy matching. It searches the full historical roster list but only returns the last availabe roster entry. Entries are sorted by date in descending order.
func (*Client) SeattleGetOfficerByBadge ¶
func (c *Client) SeattleGetOfficerByBadge(badge string) ([]*SeattleOfficer, error)
SeattleGetOfficerByBadge returns an officer by their badge. It searches the full historical roster list but only returns the most recent entry.
func (*Client) SeattleGetOfficerByBadgeHistorical ¶
func (c *Client) SeattleGetOfficerByBadgeHistorical(badge string) ([]*SeattleOfficer, error)
SeattleGetOfficerByBadgeHistorical returns an officer by their badge. It searches the full historical roster list and returns all entries in descending date order.
func (*Client) SeattleOfficerMetadata ¶
func (c *Client) SeattleOfficerMetadata() *DepartmentMetadata
SeattleOfficerMetadata retrieves metadata describing the SeattleOfficer struct
func (*Client) SeattleSearchOfficerByName ¶
func (c *Client) SeattleSearchOfficerByName(firstName, lastName string) ([]*SeattleOfficer, error)
SeattleSearchOfficerByName returns an officer by their first or last name. It searches the full historical roster list but only returns the most recent entry.
func (*Client) TacomaFuzzySearchByFirstName ¶
func (c *Client) TacomaFuzzySearchByFirstName(firstName string) ([]*TacomaOfficer, error)
TacomaFuzzySearchByFirstName invokes tacoma_fuzzy_search_officer_by_first_name_p
func (*Client) TacomaFuzzySearchByLastName ¶
func (c *Client) TacomaFuzzySearchByLastName(lastName string) ([]*TacomaOfficer, error)
TacomaFuzzySearchByLastName invokes tacoma_fuzzy_search_officer_by_last_name_p
func (*Client) TacomaFuzzySearchByName ¶
func (c *Client) TacomaFuzzySearchByName(name string) ([]*TacomaOfficer, error)
TacomaFuzzySearchByName invokes tacoma_fuzzy_search_officer_by_name_p
func (*Client) TacomaOfficerMetadata ¶
func (c *Client) TacomaOfficerMetadata() *DepartmentMetadata
TacomaOfficerMetadata retrieves metadata describing the TacomaOfficer struct
func (*Client) TacomaSearchOfficerByName ¶
func (c *Client) TacomaSearchOfficerByName(firstName, lastName string) ([]*TacomaOfficer, error)
TacomaSearchOfficerByName invokes tacoma_search_officer_by_name_p
func (*Client) ThurstonCountyFuzzySearchByFirstName ¶
func (c *Client) ThurstonCountyFuzzySearchByFirstName(firstName string) ([]*ThurstonCountyOfficer, error)
ThurstonCountyFuzzySearchByFirstName returns an list of officers by their first name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) ThurstonCountyFuzzySearchByLastName ¶
func (c *Client) ThurstonCountyFuzzySearchByLastName(lastName string) ([]*ThurstonCountyOfficer, error)
ThurstonCountyFuzzySearchByLastName returns an list of officers by their last name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) ThurstonCountyFuzzySearchByName ¶
func (c *Client) ThurstonCountyFuzzySearchByName(name string) ([]*ThurstonCountyOfficer, error)
ThurstonCountyFuzzySearchByName returns an list of officers by their full name using fuzzy matching. Entries are sorted by similarity to the full name in descending order.
func (*Client) ThurstonCountyOfficerMetadata ¶
func (c *Client) ThurstonCountyOfficerMetadata() *DepartmentMetadata
ThurstonCountyOfficerMetadata retrieves metadata describing the ThurstonCountyOfficer struct
func (*Client) ThurstonCountySearchOfficerByName ¶
func (c *Client) ThurstonCountySearchOfficerByName(firstName, lastName string) ([]*ThurstonCountyOfficer, error)
ThurstonCountySearchOfficerByName returns an officer by their first or last name.
type DatabaseInterface ¶
type DatabaseInterface interface { SeattleOfficerMetadata() *DepartmentMetadata SeattleGetOfficerByBadge(badge string) ([]*SeattleOfficer, error) SeattleSearchOfficerByName(firstName, lastName string) ([]*SeattleOfficer, error) SeattleFuzzySearchByName(name string) ([]*SeattleOfficer, error) SeattleFuzzySearchByFirstName(firstName string) ([]*SeattleOfficer, error) SeattleFuzzySearchByLastName(lastName string) ([]*SeattleOfficer, error) SeattleGetOfficerByBadgeHistorical(badge string) ([]*SeattleOfficer, error) TacomaOfficerMetadata() *DepartmentMetadata TacomaSearchOfficerByName(firstName, lastName string) ([]*TacomaOfficer, error) TacomaFuzzySearchByName(name string) ([]*TacomaOfficer, error) TacomaFuzzySearchByFirstName(firstName string) ([]*TacomaOfficer, error) TacomaFuzzySearchByLastName(lastName string) ([]*TacomaOfficer, error) PortlandOfficerMetadata() *DepartmentMetadata PortlandSearchOfficersByBadge(badge string) ([]*PortlandOfficer, error) PortlandSearchOfficersByEmployeeId(employee_id string) ([]*PortlandOfficer, error) PortlandSearchOfficersByHelmetId(helmet_id string) ([]*PortlandOfficer, error) PortlandSearchOfficersByHelmetIdThreeDigit(helmet_id_three_digit string) ([]*PortlandOfficer, error) PortlandSearchOfficersByName(firstName, lastName string) ([]*PortlandOfficer, error) PortlandFuzzySearchByName(name string) ([]*PortlandOfficer, error) PortlandFuzzySearchByFirstName(firstName string) ([]*PortlandOfficer, error) PortlandFuzzySearchByLastName(lastName string) ([]*PortlandOfficer, error) AuburnOfficerMetadata() *DepartmentMetadata AuburnGetOfficerByBadge(badge string) ([]*AuburnOfficer, error) AuburnSearchOfficerByName(firstName, lastName string) ([]*AuburnOfficer, error) AuburnFuzzySearchByName(name string) ([]*AuburnOfficer, error) AuburnFuzzySearchByFirstName(firstName string) ([]*AuburnOfficer, error) AuburnFuzzySearchByLastName(lastName string) ([]*AuburnOfficer, error) LakewoodOfficerMetadata() *DepartmentMetadata LakewoodSearchOfficerByName(firstName, lastName string) ([]*LakewoodOfficer, error) LakewoodFuzzySearchByName(name string) ([]*LakewoodOfficer, error) LakewoodFuzzySearchByFirstName(firstName string) ([]*LakewoodOfficer, error) LakewoodFuzzySearchByLastName(lastName string) ([]*LakewoodOfficer, error) RentonOfficerMetadata() *DepartmentMetadata RentonSearchOfficerByName(firstName, lastName string) ([]*RentonOfficer, error) RentonFuzzySearchByName(name string) ([]*RentonOfficer, error) RentonFuzzySearchByFirstName(firstName string) ([]*RentonOfficer, error) RentonFuzzySearchByLastName(lastName string) ([]*RentonOfficer, error) BellevueOfficerMetadata() *DepartmentMetadata BellevueSearchOfficerByBadge(badge string) ([]*BellevueOfficer, error) BellevueSearchOfficerByName(firstName, lastName string) ([]*BellevueOfficer, error) BellevueFuzzySearchByName(name string) ([]*BellevueOfficer, error) BellevueFuzzySearchByFirstName(firstName string) ([]*BellevueOfficer, error) BellevueFuzzySearchByLastName(lastName string) ([]*BellevueOfficer, error) PortOfSeattleOfficerMetadata() *DepartmentMetadata PortOfSeattleSearchOfficerByBadge(badge string) ([]*PortOfSeattleOfficer, error) PortOfSeattleSearchOfficerByName(name string) ([]*PortOfSeattleOfficer, error) PortOfSeattleFuzzySearchByName(name string) ([]*PortOfSeattleOfficer, error) ThurstonCountyOfficerMetadata() *DepartmentMetadata ThurstonCountySearchOfficerByName(firstName, lastName string) ([]*ThurstonCountyOfficer, error) ThurstonCountyFuzzySearchByName(name string) ([]*ThurstonCountyOfficer, error) ThurstonCountyFuzzySearchByFirstName(firstName string) ([]*ThurstonCountyOfficer, error) ThurstonCountyFuzzySearchByLastName(lastName string) ([]*ThurstonCountyOfficer, error) OlympiaOfficerMetadata() *DepartmentMetadata OlympiaGetOfficerByBadge(badge string) ([]*OlympiaOfficer, error) OlympiaSearchOfficerByName(firstName, lastName string) ([]*OlympiaOfficer, error) OlympiaFuzzySearchByName(name string) ([]*OlympiaOfficer, error) OlympiaFuzzySearchByFirstName(firstName string) ([]*OlympiaOfficer, error) OlympiaFuzzySearchByLastName(lastName string) ([]*OlympiaOfficer, error) }
DatabaseInterface describes database functions
type DepartmentMetadata ¶
type DepartmentMetadata struct { ID string `json:"id"` Name string `json:"name"` LastAvailableRosterDate string `json:"last_available_roster_date"` Fields []map[string]string `json:"fields"` SearchRoutes map[string]*SearchRouteMetadata `json:"search_routes"` }
DepartmentMetadata is the structure of the metadata returned by the SQL DB
type LakewoodOfficer ¶
type LakewoodOfficer struct { Date string `json:"date,omitempty"` Title string `json:"title,omitempty"` LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` Unit string `json:"unit,omitempty"` UnitDescription string `json:"unit_description,omitempty"` }
LakewoodOfficer is the object model for LPD officers
type OlympiaOfficer ¶
type OlympiaOfficer struct { Date string `json:"date,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Title string `json:"title,omitempty"` Unit string `json:"unit,omitempty"` Badge string `json:"badge,omitempty"` }
OlympiaOfficer is the object model for LPD officers
type PortOfSeattleOfficer ¶
type PortOfSeattleOfficer struct { Name string `json:"name,omitempty"` Rank string `json:"rank,omitempty"` Unit string `json:"unit,omitempty"` Badge string `json:"badge,omitempty"` }
PortOfSeattleOfficer is the object model for BPD officers
type PortlandOfficer ¶
type PortlandOfficer struct { FirstName nulls.String `json:"first_name,omitempty"` LastName nulls.String `json:"last_name,omitempty"` Gender nulls.String `json:"gender,omitempty"` OfficerRank nulls.String `json:"officer_rank,omitempty"` EmployeeID nulls.String `json:"employee_id,omitempty"` HelmetID nulls.String `json:"helmet_id,omitempty"` HelmetIDThreeDigit nulls.String `json:"helmet_id_three_digit,omitempty"` Salary nulls.String `json:"salary,omitempty"` Badge nulls.String `json:"badge,omitempty"` CopsPhotoProfileLink nulls.String `json:"cops_photo_profile_link,omitempty"` CopsPhotoHasPhoto nulls.String `json:"cops_photo_has_photo,omitempty"` Employed_3_12_21 nulls.String `json:"employed_3_12_21,omitempty"` Employed_12_28_20 nulls.String `json:"employed_12_28_20,omitempty"` Employed_10_01_20 nulls.String `json:"employed_10_01_20,omitempty"` Retired_6_1_20 nulls.String `json:"retired_6_1_20,omitempty"` RetiredOrCertRevoked nulls.String `json:"retired_or_cert_revoked,omitempty"` RetiredOrCertRevokedDate nulls.String `json:"retired_or_cert_revoked_date,omitempty"` HireYear nulls.String `json:"hire_year,omitempty"` HireDate nulls.String `json:"hire_date,omitempty"` StateCertDate nulls.String `json:"state_cert_date,omitempty"` StateCertLevel nulls.String `json:"state_cert_level,omitempty"` RRT nulls.String `json:"rrt,omitempty"` RRT2016 nulls.String `json:"rrt_2016,omitempty"` RRT2018NiiyaEmail nulls.String `json:"rrt_2018_niiya_email,omitempty"` RRT2018 nulls.String `json:"rrt_2018,omitempty"` RRT2019 nulls.String `json:"rrt_2019,omitempty"` RRT2020 nulls.String `json:"rrt_2020,omitempty"` SoundTruckTraining nulls.String `json:"sound_truck_training_2020,omitempty"` InstructedForDpsst nulls.String `json:"instructed_for_dpsst,omitempty"` InstructedForLessLethal nulls.String `json:"instructed_for_less_lethal,omitempty"` InvolvedInOisUof nulls.String `json:"involved_in_ois_uof,omitempty"` Notes nulls.String `json:"notes,omitempty"` }
PortlandOfficer is the object model for PPB officers
type RentonOfficer ¶
type RentonOfficer struct { LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` MiddleName string `json:"middle_name,omitempty"` Rank string `json:"rank,omitempty"` Department string `json:"department,omitempty"` Division string `json:"division,omitempty"` Shift string `json:"shift,omitempty"` AdditionalInfo string `json:"additional_info,omitempty"` Badge string `json:"badge,omitempty"` }
RentonOfficer is the object model for LPD officers
type SearchRouteMetadata ¶
type SearchRouteMetadata struct { Path string `json:"path"` QueryParams []string `json:"query_params"` }
SearchRouteMetadata describes the search routes of a deparment
type SeattleOfficer ¶
type SeattleOfficer struct { Date string `json:"date,omitempty"` Badge string `json:"badge,omitempty"` FullName string `json:"full_name,omitempty"` Title string `json:"title,omitempty"` Unit string `json:"unit,omitempty"` UnitDescription string `json:"unit_description,omitempty"` FirstName string `json:"first_name,omitempty"` MiddleName string `json:"middle_name,omitempty"` LastName string `json:"last_name,omitempty"` Current bool `json:"is_current"` }
SeattleOfficer is the object model for SPD officers
type TacomaOfficer ¶
type TacomaOfficer struct { Date string `json:"date,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Title string `json:"title,omitempty"` Department string `json:"department,omitempty"` Salary string `json:"salary,omitempty"` }
TacomaOfficer is the object model for Tacoma PD officers
type ThurstonCountyOfficer ¶
type ThurstonCountyOfficer struct { LastName string `json:"last_name,omitempty"` FirstName string `json:"first_name,omitempty"` Title string `json:"title,omitempty"` CallSign string `json:"call_sign,omitempty"` }
ThurstonCountyOfficer is the object model for BPD officers