Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher[V any] struct { UpdatedAt time.Time OnUpdate func(V) // contains filtered or unexported fields }
func NewFetcher ¶
func (*Fetcher[V]) VehicleType ¶
func (f *Fetcher[V]) VehicleType() types.VehicleType
type FileVehicle ¶
type FileVehicle struct {
// contains filtered or unexported fields
}
func NewFileVehicle ¶
func NewFileVehicle(path string) *FileVehicle
func (*FileVehicle) Path ¶
func (f *FileVehicle) Path() string
func (*FileVehicle) Proxy ¶
func (f *FileVehicle) Proxy() string
func (*FileVehicle) Read ¶
func (f *FileVehicle) Read() ([]byte, error)
func (*FileVehicle) Type ¶
func (f *FileVehicle) Type() types.VehicleType
type HTTPVehicle ¶
type HTTPVehicle struct {
// contains filtered or unexported fields
}
func NewHTTPVehicle ¶
func (*HTTPVehicle) Path ¶
func (h *HTTPVehicle) Path() string
func (*HTTPVehicle) Proxy ¶
func (h *HTTPVehicle) Proxy() string
func (*HTTPVehicle) Read ¶
func (h *HTTPVehicle) Read() ([]byte, error)
func (*HTTPVehicle) Type ¶
func (h *HTTPVehicle) Type() types.VehicleType
func (*HTTPVehicle) Url ¶
func (h *HTTPVehicle) Url() string
Click to show internal directories.
Click to hide internal directories.