Documentation ¶
Index ¶
- type FleetHandler
- func (h *FleetHandler) Filter(fs []*repository.Filter) (bool, error)
- func (h *FleetHandler) GetStats(fs []*repository.Filter) (*FleetStats, error)
- func (h *FleetHandler) GetVehicles() ([]*fleet.Vehicle, error)
- func (h *FleetHandler) GetVehiclesByOperationalStatus(status string) ([]*fleet.Vehicle, error)
- func (h *FleetHandler) GetVehiclesByYear(year int32) ([]*fleet.Vehicle, error)
- func (h *FleetHandler) SaveVehicle(v *fleet.Vehicle) (bool, error)
- type FleetServer
- func (s *FleetServer) AddVehicle(ctx context.Context, req *fleet.VehicleRequest) (*fleet.VehicleResponse, error)
- func (s *FleetServer) GetFleetStats(ctx context.Context, req *fleet.GetFleetStatsRequest) (*fleet.GetFleetStatsResponse, error)
- func (s *FleetServer) GetVehiclesByOpStatus(ctx context.Context, req *fleet.GetVehiclesByOpStatusRequest) (*fleet.VehicleList, error)
- func (s *FleetServer) GetVehiclesByYear(ctx context.Context, req *fleet.GetVehiclesByYearRequest) (*fleet.VehicleList, error)
- func (s *FleetServer) ListVehicles(ctx context.Context, in *emptypb.Empty) (*fleet.VehicleList, error)
- type FleetStats
- type GroupStats
- type IncidentHandler
- func (h *IncidentHandler) Filter(fs []*repository.Filter) (bool, error)
- func (h *IncidentHandler) GetIncidents() ([]*incident.Incident, error)
- func (h *IncidentHandler) GetIncidentsByAnimalGroup(group string) ([]*incident.Incident, error)
- func (h *IncidentHandler) GetYearStats(year int32) (*Stats, error)
- type IncidentServer
- func (s *IncidentServer) GetIncidentsByAnimalGroup(ctx context.Context, req *incident.GetIncidentsByAnimalGroupRequest) (*incident.IncidentList, error)
- func (s *IncidentServer) GetYearStats(ctx context.Context, req *incident.GetIncidentsStatsRequest) (*incident.GetIncidentsStatsResponse, error)
- func (s *IncidentServer) ListIncidents(ctx context.Context, in *emptypb.Empty) (*incident.IncidentList, error)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FleetHandler ¶
type FleetHandler struct {
// contains filtered or unexported fields
}
func NewFleetHandler ¶
func NewFleetHandler(r *repository.Repository) (*FleetHandler, error)
func (*FleetHandler) Filter ¶
func (h *FleetHandler) Filter(fs []*repository.Filter) (bool, error)
func (*FleetHandler) GetStats ¶
func (h *FleetHandler) GetStats(fs []*repository.Filter) (*FleetStats, error)
func (*FleetHandler) GetVehicles ¶
func (h *FleetHandler) GetVehicles() ([]*fleet.Vehicle, error)
func (*FleetHandler) GetVehiclesByOperationalStatus ¶
func (h *FleetHandler) GetVehiclesByOperationalStatus(status string) ([]*fleet.Vehicle, error)
func (*FleetHandler) GetVehiclesByYear ¶
func (h *FleetHandler) GetVehiclesByYear(year int32) ([]*fleet.Vehicle, error)
func (*FleetHandler) SaveVehicle ¶
func (h *FleetHandler) SaveVehicle(v *fleet.Vehicle) (bool, error)
type FleetServer ¶
type FleetServer struct { fleet.UnimplementedFleetServiceServer Repository *repository.Repository }
func NewFleetServer ¶
func NewFleetServer(f string) (*FleetServer, error)
func (*FleetServer) AddVehicle ¶
func (s *FleetServer) AddVehicle(ctx context.Context, req *fleet.VehicleRequest) (*fleet.VehicleResponse, error)
func (*FleetServer) GetFleetStats ¶
func (s *FleetServer) GetFleetStats(ctx context.Context, req *fleet.GetFleetStatsRequest) (*fleet.GetFleetStatsResponse, error)
func (*FleetServer) GetVehiclesByOpStatus ¶
func (s *FleetServer) GetVehiclesByOpStatus(ctx context.Context, req *fleet.GetVehiclesByOpStatusRequest) (*fleet.VehicleList, error)
func (*FleetServer) GetVehiclesByYear ¶
func (s *FleetServer) GetVehiclesByYear(ctx context.Context, req *fleet.GetVehiclesByYearRequest) (*fleet.VehicleList, error)
func (*FleetServer) ListVehicles ¶
func (s *FleetServer) ListVehicles(ctx context.Context, in *emptypb.Empty) (*fleet.VehicleList, error)
type FleetStats ¶
type GroupStats ¶
type GroupStats struct {
// contains filtered or unexported fields
}
type IncidentHandler ¶
type IncidentHandler struct {
// contains filtered or unexported fields
}
func NewIncidentHandler ¶
func NewIncidentHandler(r *repository.Repository) (*IncidentHandler, error)
func (*IncidentHandler) Filter ¶
func (h *IncidentHandler) Filter(fs []*repository.Filter) (bool, error)
func (*IncidentHandler) GetIncidents ¶
func (h *IncidentHandler) GetIncidents() ([]*incident.Incident, error)
func (*IncidentHandler) GetIncidentsByAnimalGroup ¶
func (h *IncidentHandler) GetIncidentsByAnimalGroup(group string) ([]*incident.Incident, error)
func (*IncidentHandler) GetYearStats ¶
func (h *IncidentHandler) GetYearStats(year int32) (*Stats, error)
type IncidentServer ¶
type IncidentServer struct { incident.UnimplementedIncidentServiceServer Repository *repository.Repository }
func NewIncidentServer ¶
func NewIncidentServer(f string) (*IncidentServer, error)
func (*IncidentServer) GetIncidentsByAnimalGroup ¶
func (s *IncidentServer) GetIncidentsByAnimalGroup(ctx context.Context, req *incident.GetIncidentsByAnimalGroupRequest) (*incident.IncidentList, error)
func (*IncidentServer) GetYearStats ¶
func (s *IncidentServer) GetYearStats(ctx context.Context, req *incident.GetIncidentsStatsRequest) (*incident.GetIncidentsStatsResponse, error)
func (*IncidentServer) ListIncidents ¶
func (s *IncidentServer) ListIncidents(ctx context.Context, in *emptypb.Empty) (*incident.IncidentList, error)
Click to show internal directories.
Click to hide internal directories.