Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CC = MeetingType{Code: "CC", Name: "City Council", /* contains filtered or unexported fields */} DHSC = MeetingType{Code: "DHSC", Name: "Development & Heritage Standing Committee", /* contains filtered or unexported fields */} Special = MeetingType{Code: "Special", Name: "Special Meeting of Council", /* contains filtered or unexported fields */} ETP = MeetingType{Code: "ETP", Name: "Environment, Transportation & Public Safety Standing Committee", /* contains filtered or unexported fields */} CSSC = MeetingType{Code: "CSSC", Name: "Community Services Standing Committee", /* contains filtered or unexported fields */} Other = MeetingType{Code: "Other", Name: "Other", /* contains filtered or unexported fields */} )
Functions ¶
Types ¶
type Document ¶
type Document struct {
Link string `json:"link"`
Name string `json:"name"`
Meeting MeetingType `json:"meeting"`
Date time.Time `json:"date"`
RawTitle string `json:"rawTitle"`
}
Document represents the metadata associated with a given upstream document.
type FilterFunc ¶
FilterFunc is a function type that returns a subset of the input documents.
func ByMeetingType ¶
func ByMeetingType(meeting MeetingType) FilterFunc
ByMeetingType returns a FilterFunc for documents that match a specific MeetingType
func ByStringInName ¶
func ByStringInName(str string) FilterFunc
ByStringInName returns a FilterFunc for a slice of Document that have a given string in its name
func ByYear ¶
func ByYear(year int) FilterFunc
ByYear returns a FilterFunc for documents that match a given year
type MeetingType ¶
type MeetingType struct {
Code string `json:"code,omitempty"`
Name string `json:"name,omitempty"`
// contains filtered or unexported fields
}
MeetingType defines a meeting with associated search terms
func GetMeetingType ¶
func GetMeetingType(meeting string) MeetingType
GetMeetingType will return the matching MeetingType if the meeting argument matches the Code, Name or any of the search terms.
Click to show internal directories.
Click to hide internal directories.