Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + type Fetcher struct + OnUpdate func(V) + UpdatedAt *time.Time + func NewFetcher[V any](name string, interval time.Duration, vehicle types.Vehicle, parser Parser[V], ...) *Fetcher[V] + func (f *Fetcher[V]) Destroy() error + func (f *Fetcher[V]) Initial() (V, error) + func (f *Fetcher[V]) Name() string + func (f *Fetcher[V]) Update() (V, bool, error) + func (f *Fetcher[V]) Vehicle() types.Vehicle + func (f *Fetcher[V]) VehicleType() types.VehicleType + type FileVehicle struct + func NewFileVehicle(path string) *FileVehicle + func (f *FileVehicle) Path() string + func (f *FileVehicle) Read() ([]byte, error) + func (f *FileVehicle) Type() types.VehicleType + type HTTPVehicle struct + func NewHTTPVehicle(url string, path string) *HTTPVehicle + func (h *HTTPVehicle) Path() string + func (h *HTTPVehicle) Read() ([]byte, error) + func (h *HTTPVehicle) Type() types.VehicleType + func (h *HTTPVehicle) Url() string + type Parser func([]byte) (V, error)