Documentation ¶
Index ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- type API
- type Aczc
- type Client
- type Event
- type Fz
- type Jikoji
- type Manager
- type Sfzc
- type Venue
- type Vz
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides HTTP endpoints for serving events
type Aczc ¶
type Aczc struct {
// contains filtered or unexported fields
}
Aczc crawls aczc.org, satisfies Worker interface
func (*Aczc) Events ¶
Events hits aczc events page and returns slice of Event types https://www.aczc.org/schedule/
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps http.Client for custom UA string, Getting, etc. TODO Add rate limit per worker
type Event ¶
type Event struct { ID int `json:"id"` Name string `json:"name"` Blurb string `json:"blurb"` Desc string `json:"desc"` Start time.Time `json:"start"` End time.Time `json:"end"` URL string `json:"url"` Venue *Venue `json:"venue"` }
Event represents events for DB store and web API
type Fz ¶
type Fz struct {
// contains filtered or unexported fields
}
Fz crawls floatingzendo.org, satisfies Worker interface
func (*Fz) Events ¶
Events hits floating zendo events page and returns slice of Event types http://www.floatingzendo.org/events/
type Jikoji ¶
type Jikoji struct {
// contains filtered or unexported fields
}
Jikoji crawls jikoji.org, satisfies Worker interface
func (*Jikoji) Events ¶
Events hits jikoji events page and returns slice of Event types https://www.jikoji.org/jikoji-events
type Manager ¶
Manager handles running all workers
func NewManager ¶
NewManager builds internal worker map and returns new Mananger object
type Sfzc ¶
type Sfzc struct {
// contains filtered or unexported fields
}
Sfzc crawls sfzc.org, satisfies Worker interface
type Venue ¶
type Venue struct { ID int `json:"id"` Name string `json:"name"` Addr string `json:"addr"` Lat float32 `json:"lat"` Lng float32 `json:"lng"` Website string `json:"website"` Phone string `json:"phone"` Email string `json:"email"` }
Venue represents a venue entry for DB store and web API