Documentation
¶
Index ¶
- type Fetcher
- func (f *Fetcher[V]) Close() error
- func (f *Fetcher[V]) Initial() (V, error)
- func (f *Fetcher[V]) Name() string
- func (f *Fetcher[V]) SideUpdate(buf []byte) (V, bool, error)
- func (f *Fetcher[V]) Update() (V, bool, error)
- func (f *Fetcher[V]) UpdatedAt() time.Time
- func (f *Fetcher[V]) Vehicle() types.Vehicle
- func (f *Fetcher[V]) VehicleType() types.VehicleType
- type FileVehicle
- type HTTPVehicle
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher[V any] struct { OnUpdate func(V) // contains filtered or unexported fields }
func NewFetcher ¶
func (*Fetcher[V]) SideUpdate ¶ added in v1.18.8
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 ¶ added in v1.18.4
func (f *FileVehicle) Proxy() string
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 ¶ added in v1.18.4
func (h *HTTPVehicle) Proxy() string
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.