incident

package
v0.0.0-...-8a7be7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_protobuf_schema_incident_proto protoreflect.FileDescriptor
View Source
var IncidentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "incident.IncidentService",
	HandlerType: (*IncidentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListIncidents",
			Handler:    _IncidentService_ListIncidents_Handler,
		},
		{
			MethodName: "GetIncidentsByAnimalGroup",
			Handler:    _IncidentService_GetIncidentsByAnimalGroup_Handler,
		},
		{
			MethodName: "GetYearStats",
			Handler:    _IncidentService_GetYearStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/protobuf/schema/incident.proto",
}

IncidentService_ServiceDesc is the grpc.ServiceDesc for IncidentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIncidentServiceServer

func RegisterIncidentServiceServer(s grpc.ServiceRegistrar, srv IncidentServiceServer)

Types

type GetIncidentsByAnimalGroupRequest

type GetIncidentsByAnimalGroupRequest struct {
	Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIncidentsByAnimalGroupRequest) Descriptor deprecated

func (*GetIncidentsByAnimalGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIncidentsByAnimalGroupRequest.ProtoReflect.Descriptor instead.

func (*GetIncidentsByAnimalGroupRequest) GetGroup

func (*GetIncidentsByAnimalGroupRequest) ProtoMessage

func (*GetIncidentsByAnimalGroupRequest) ProtoMessage()

func (*GetIncidentsByAnimalGroupRequest) ProtoReflect

func (*GetIncidentsByAnimalGroupRequest) Reset

func (*GetIncidentsByAnimalGroupRequest) String

type GetIncidentsStatsRequest

type GetIncidentsStatsRequest struct {
	Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIncidentsStatsRequest) Descriptor deprecated

func (*GetIncidentsStatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIncidentsStatsRequest.ProtoReflect.Descriptor instead.

func (*GetIncidentsStatsRequest) GetYear

func (x *GetIncidentsStatsRequest) GetYear() int32

func (*GetIncidentsStatsRequest) ProtoMessage

func (*GetIncidentsStatsRequest) ProtoMessage()

func (*GetIncidentsStatsRequest) ProtoReflect

func (x *GetIncidentsStatsRequest) ProtoReflect() protoreflect.Message

func (*GetIncidentsStatsRequest) Reset

func (x *GetIncidentsStatsRequest) Reset()

func (*GetIncidentsStatsRequest) String

func (x *GetIncidentsStatsRequest) String() string

type GetIncidentsStatsResponse

type GetIncidentsStatsResponse struct {
	Year      int32                                   `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
	Incidents int32                                   `protobuf:"varint,2,opt,name=incidents,proto3" json:"incidents,omitempty"`
	Groups    []*GetIncidentsStatsResponse_GroupStats `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIncidentsStatsResponse) Descriptor deprecated

func (*GetIncidentsStatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetIncidentsStatsResponse.ProtoReflect.Descriptor instead.

func (*GetIncidentsStatsResponse) GetGroups

func (*GetIncidentsStatsResponse) GetIncidents

func (x *GetIncidentsStatsResponse) GetIncidents() int32

func (*GetIncidentsStatsResponse) GetYear

func (x *GetIncidentsStatsResponse) GetYear() int32

func (*GetIncidentsStatsResponse) ProtoMessage

func (*GetIncidentsStatsResponse) ProtoMessage()

func (*GetIncidentsStatsResponse) ProtoReflect

func (*GetIncidentsStatsResponse) Reset

func (x *GetIncidentsStatsResponse) Reset()

func (*GetIncidentsStatsResponse) String

func (x *GetIncidentsStatsResponse) String() string

type GetIncidentsStatsResponse_GroupStats

type GetIncidentsStatsResponse_GroupStats struct {
	AnimalGroup string `protobuf:"bytes,1,opt,name=animal_group,json=animalGroup,proto3" json:"animal_group,omitempty"`
	Incidents   int32  `protobuf:"varint,2,opt,name=incidents,proto3" json:"incidents,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIncidentsStatsResponse_GroupStats) Descriptor deprecated

func (*GetIncidentsStatsResponse_GroupStats) Descriptor() ([]byte, []int)

Deprecated: Use GetIncidentsStatsResponse_GroupStats.ProtoReflect.Descriptor instead.

func (*GetIncidentsStatsResponse_GroupStats) GetAnimalGroup

func (x *GetIncidentsStatsResponse_GroupStats) GetAnimalGroup() string

func (*GetIncidentsStatsResponse_GroupStats) GetIncidents

func (x *GetIncidentsStatsResponse_GroupStats) GetIncidents() int32

func (*GetIncidentsStatsResponse_GroupStats) ProtoMessage

func (*GetIncidentsStatsResponse_GroupStats) ProtoMessage()

func (*GetIncidentsStatsResponse_GroupStats) ProtoReflect

func (*GetIncidentsStatsResponse_GroupStats) Reset

func (*GetIncidentsStatsResponse_GroupStats) String

type Incident

type Incident struct {
	Number               int64                    `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	CallDatetime         string                   `protobuf:"bytes,2,opt,name=call_datetime,json=callDatetime,proto3" json:"call_datetime,omitempty"`
	Year                 int32                    `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"`
	Type                 string                   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	PumpCount            int32                    `protobuf:"varint,5,opt,name=pump_count,json=pumpCount,proto3" json:"pump_count,omitempty"`
	PumpHoursTotal       int32                    `protobuf:"varint,6,opt,name=pump_hours_total,json=pumpHoursTotal,proto3" json:"pump_hours_total,omitempty"`
	IncidentHourlyCost   int32                    `protobuf:"varint,7,opt,name=incident_hourly_cost,json=incidentHourlyCost,proto3" json:"incident_hourly_cost,omitempty"`
	IncidentNotionalCost int32                    `protobuf:"varint,8,opt,name=incident_notional_cost,json=incidentNotionalCost,proto3" json:"incident_notional_cost,omitempty"`
	AnimalGroup          string                   `protobuf:"bytes,10,opt,name=animal_group,json=animalGroup,proto3" json:"animal_group,omitempty"`
	FinalDescription     string                   `protobuf:"bytes,11,opt,name=final_description,json=finalDescription,proto3" json:"final_description,omitempty"`
	Origin               *Incident_Call           `protobuf:"bytes,12,opt,name=origin,proto3" json:"origin,omitempty"`
	Property             *Incident_Property       `protobuf:"bytes,13,opt,name=property,proto3" json:"property,omitempty"`
	SpecialService       *Incident_SpecialService `protobuf:"bytes,14,opt,name=special_service,json=specialService,proto3" json:"special_service,omitempty"`
	Ward                 *Incident_Ward           `protobuf:"bytes,15,opt,name=ward,proto3" json:"ward,omitempty"`
	Address              *Incident_Address        `protobuf:"bytes,16,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident) Descriptor deprecated

func (*Incident) Descriptor() ([]byte, []int)

Deprecated: Use Incident.ProtoReflect.Descriptor instead.

func (*Incident) GetAddress

func (x *Incident) GetAddress() *Incident_Address

func (*Incident) GetAnimalGroup

func (x *Incident) GetAnimalGroup() string

func (*Incident) GetCallDatetime

func (x *Incident) GetCallDatetime() string

func (*Incident) GetFinalDescription

func (x *Incident) GetFinalDescription() string

func (*Incident) GetIncidentHourlyCost

func (x *Incident) GetIncidentHourlyCost() int32

func (*Incident) GetIncidentNotionalCost

func (x *Incident) GetIncidentNotionalCost() int32

func (*Incident) GetNumber

func (x *Incident) GetNumber() int64

func (*Incident) GetOrigin

func (x *Incident) GetOrigin() *Incident_Call

func (*Incident) GetProperty

func (x *Incident) GetProperty() *Incident_Property

func (*Incident) GetPumpCount

func (x *Incident) GetPumpCount() int32

func (*Incident) GetPumpHoursTotal

func (x *Incident) GetPumpHoursTotal() int32

func (*Incident) GetSpecialService

func (x *Incident) GetSpecialService() *Incident_SpecialService

func (*Incident) GetType

func (x *Incident) GetType() string

func (*Incident) GetWard

func (x *Incident) GetWard() *Incident_Ward

func (*Incident) GetYear

func (x *Incident) GetYear() int32

func (*Incident) ProtoMessage

func (*Incident) ProtoMessage()

func (*Incident) ProtoReflect

func (x *Incident) ProtoReflect() protoreflect.Message

func (*Incident) Reset

func (x *Incident) Reset()

func (*Incident) String

func (x *Incident) String() string

type IncidentList

type IncidentList struct {
	Incidents []*Incident `protobuf:"bytes,1,rep,name=incidents,proto3" json:"incidents,omitempty"`
	// contains filtered or unexported fields
}

func (*IncidentList) Descriptor deprecated

func (*IncidentList) Descriptor() ([]byte, []int)

Deprecated: Use IncidentList.ProtoReflect.Descriptor instead.

func (*IncidentList) GetIncidents

func (x *IncidentList) GetIncidents() []*Incident

func (*IncidentList) ProtoMessage

func (*IncidentList) ProtoMessage()

func (*IncidentList) ProtoReflect

func (x *IncidentList) ProtoReflect() protoreflect.Message

func (*IncidentList) Reset

func (x *IncidentList) Reset()

func (*IncidentList) String

func (x *IncidentList) String() string

type IncidentServiceClient

type IncidentServiceClient interface {
	ListIncidents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IncidentList, error)
	GetIncidentsByAnimalGroup(ctx context.Context, in *GetIncidentsByAnimalGroupRequest, opts ...grpc.CallOption) (*IncidentList, error)
	GetYearStats(ctx context.Context, in *GetIncidentsStatsRequest, opts ...grpc.CallOption) (*GetIncidentsStatsResponse, error)
}

IncidentServiceClient is the client API for IncidentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IncidentServiceServer

type IncidentServiceServer interface {
	ListIncidents(context.Context, *emptypb.Empty) (*IncidentList, error)
	GetIncidentsByAnimalGroup(context.Context, *GetIncidentsByAnimalGroupRequest) (*IncidentList, error)
	GetYearStats(context.Context, *GetIncidentsStatsRequest) (*GetIncidentsStatsResponse, error)
	// contains filtered or unexported methods
}

IncidentServiceServer is the server API for IncidentService service. All implementations must embed UnimplementedIncidentServiceServer for forward compatibility

type Incident_Address

type Incident_Address struct {
	BoroughInfo      *Incident_Address_Borough `protobuf:"bytes,1,opt,name=borough_info,json=boroughInfo,proto3" json:"borough_info,omitempty"`
	Street           string                    `protobuf:"bytes,2,opt,name=street,proto3" json:"street,omitempty"`
	Usrn             string                    `protobuf:"bytes,3,opt,name=usrn,proto3" json:"usrn,omitempty"`
	PostcodeDistrict string                    `protobuf:"bytes,4,opt,name=postcode_district,json=postcodeDistrict,proto3" json:"postcode_district,omitempty"`
	Latitude         float64                   `protobuf:"fixed64,5,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude        float64                   `protobuf:"fixed64,6,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_Address) Descriptor deprecated

func (*Incident_Address) Descriptor() ([]byte, []int)

Deprecated: Use Incident_Address.ProtoReflect.Descriptor instead.

func (*Incident_Address) GetBoroughInfo

func (x *Incident_Address) GetBoroughInfo() *Incident_Address_Borough

func (*Incident_Address) GetLatitude

func (x *Incident_Address) GetLatitude() float64

func (*Incident_Address) GetLongitude

func (x *Incident_Address) GetLongitude() float64

func (*Incident_Address) GetPostcodeDistrict

func (x *Incident_Address) GetPostcodeDistrict() string

func (*Incident_Address) GetStreet

func (x *Incident_Address) GetStreet() string

func (*Incident_Address) GetUsrn

func (x *Incident_Address) GetUsrn() string

func (*Incident_Address) ProtoMessage

func (*Incident_Address) ProtoMessage()

func (*Incident_Address) ProtoReflect

func (x *Incident_Address) ProtoReflect() protoreflect.Message

func (*Incident_Address) Reset

func (x *Incident_Address) Reset()

func (*Incident_Address) String

func (x *Incident_Address) String() string

type Incident_Address_Borough

type Incident_Address_Borough struct {
	Code          string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	StnGroundName string `protobuf:"bytes,3,opt,name=stn_ground_name,json=stnGroundName,proto3" json:"stn_ground_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_Address_Borough) Descriptor deprecated

func (*Incident_Address_Borough) Descriptor() ([]byte, []int)

Deprecated: Use Incident_Address_Borough.ProtoReflect.Descriptor instead.

func (*Incident_Address_Borough) GetCode

func (x *Incident_Address_Borough) GetCode() string

func (*Incident_Address_Borough) GetName

func (x *Incident_Address_Borough) GetName() string

func (*Incident_Address_Borough) GetStnGroundName

func (x *Incident_Address_Borough) GetStnGroundName() string

func (*Incident_Address_Borough) ProtoMessage

func (*Incident_Address_Borough) ProtoMessage()

func (*Incident_Address_Borough) ProtoReflect

func (x *Incident_Address_Borough) ProtoReflect() protoreflect.Message

func (*Incident_Address_Borough) Reset

func (x *Incident_Address_Borough) Reset()

func (*Incident_Address_Borough) String

func (x *Incident_Address_Borough) String() string

type Incident_Call

type Incident_Call struct {
	Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_Call) Descriptor deprecated

func (*Incident_Call) Descriptor() ([]byte, []int)

Deprecated: Use Incident_Call.ProtoReflect.Descriptor instead.

func (*Incident_Call) GetOrigin

func (x *Incident_Call) GetOrigin() string

func (*Incident_Call) ProtoMessage

func (*Incident_Call) ProtoMessage()

func (*Incident_Call) ProtoReflect

func (x *Incident_Call) ProtoReflect() protoreflect.Message

func (*Incident_Call) Reset

func (x *Incident_Call) Reset()

func (*Incident_Call) String

func (x *Incident_Call) String() string

type Incident_Property

type Incident_Property struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_Property) Descriptor deprecated

func (*Incident_Property) Descriptor() ([]byte, []int)

Deprecated: Use Incident_Property.ProtoReflect.Descriptor instead.

func (*Incident_Property) GetCategory

func (x *Incident_Property) GetCategory() string

func (*Incident_Property) GetType

func (x *Incident_Property) GetType() string

func (*Incident_Property) ProtoMessage

func (*Incident_Property) ProtoMessage()

func (*Incident_Property) ProtoReflect

func (x *Incident_Property) ProtoReflect() protoreflect.Message

func (*Incident_Property) Reset

func (x *Incident_Property) Reset()

func (*Incident_Property) String

func (x *Incident_Property) String() string

type Incident_SpecialService

type Incident_SpecialService struct {
	Type     string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_SpecialService) Descriptor deprecated

func (*Incident_SpecialService) Descriptor() ([]byte, []int)

Deprecated: Use Incident_SpecialService.ProtoReflect.Descriptor instead.

func (*Incident_SpecialService) GetCategory

func (x *Incident_SpecialService) GetCategory() string

func (*Incident_SpecialService) GetType

func (x *Incident_SpecialService) GetType() string

func (*Incident_SpecialService) ProtoMessage

func (*Incident_SpecialService) ProtoMessage()

func (*Incident_SpecialService) ProtoReflect

func (x *Incident_SpecialService) ProtoReflect() protoreflect.Message

func (*Incident_SpecialService) Reset

func (x *Incident_SpecialService) Reset()

func (*Incident_SpecialService) String

func (x *Incident_SpecialService) String() string

type Incident_Ward

type Incident_Ward struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Incident_Ward) Descriptor deprecated

func (*Incident_Ward) Descriptor() ([]byte, []int)

Deprecated: Use Incident_Ward.ProtoReflect.Descriptor instead.

func (*Incident_Ward) GetCode

func (x *Incident_Ward) GetCode() string

func (*Incident_Ward) GetName

func (x *Incident_Ward) GetName() string

func (*Incident_Ward) ProtoMessage

func (*Incident_Ward) ProtoMessage()

func (*Incident_Ward) ProtoReflect

func (x *Incident_Ward) ProtoReflect() protoreflect.Message

func (*Incident_Ward) Reset

func (x *Incident_Ward) Reset()

func (*Incident_Ward) String

func (x *Incident_Ward) String() string

type UnimplementedIncidentServiceServer

type UnimplementedIncidentServiceServer struct {
}

UnimplementedIncidentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIncidentServiceServer) GetIncidentsByAnimalGroup

func (UnimplementedIncidentServiceServer) GetYearStats

func (UnimplementedIncidentServiceServer) ListIncidents

type UnsafeIncidentServiceServer

type UnsafeIncidentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIncidentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IncidentServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL