Versions in this module Expand all Collapse all v0 v0.4.0 Nov 3, 2021 Changes in this version + var EquipmentService_ServiceDesc = grpc.ServiceDesc + var File_entpb_entpb_proto protoreflect.FileDescriptor + var GetEquipmentRequest_View_name = map[int32]string + var GetEquipmentRequest_View_value = map[string]int32 + var GetVehicleRequest_View_name = map[int32]string + var GetVehicleRequest_View_value = map[string]int32 + var VehicleService_ServiceDesc = grpc.ServiceDesc + func RegisterEquipmentServiceServer(s grpc.ServiceRegistrar, srv EquipmentServiceServer) + func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer) + type CreateEquipmentRequest struct + Equipment *Equipment + func (*CreateEquipmentRequest) Descriptor() ([]byte, []int) + func (*CreateEquipmentRequest) ProtoMessage() + func (x *CreateEquipmentRequest) GetEquipment() *Equipment + func (x *CreateEquipmentRequest) ProtoReflect() protoreflect.Message + func (x *CreateEquipmentRequest) Reset() + func (x *CreateEquipmentRequest) String() string + type CreateVehicleRequest struct + Vehicle *Vehicle + func (*CreateVehicleRequest) Descriptor() ([]byte, []int) + func (*CreateVehicleRequest) ProtoMessage() + func (x *CreateVehicleRequest) GetVehicle() *Vehicle + func (x *CreateVehicleRequest) ProtoReflect() protoreflect.Message + func (x *CreateVehicleRequest) Reset() + func (x *CreateVehicleRequest) String() string + type DeleteEquipmentRequest struct + Id int32 + func (*DeleteEquipmentRequest) Descriptor() ([]byte, []int) + func (*DeleteEquipmentRequest) ProtoMessage() + func (x *DeleteEquipmentRequest) GetId() int32 + func (x *DeleteEquipmentRequest) ProtoReflect() protoreflect.Message + func (x *DeleteEquipmentRequest) Reset() + func (x *DeleteEquipmentRequest) String() string + type DeleteVehicleRequest struct + Id int32 + func (*DeleteVehicleRequest) Descriptor() ([]byte, []int) + func (*DeleteVehicleRequest) ProtoMessage() + func (x *DeleteVehicleRequest) GetId() int32 + func (x *DeleteVehicleRequest) ProtoReflect() protoreflect.Message + func (x *DeleteVehicleRequest) Reset() + func (x *DeleteVehicleRequest) String() string + type Equipment struct + Condition string + CreateTime *timestamppb.Timestamp + Id int32 + Name string + UpdateTime *timestamppb.Timestamp + func (*Equipment) Descriptor() ([]byte, []int) + func (*Equipment) ProtoMessage() + func (x *Equipment) GetCondition() string + func (x *Equipment) GetCreateTime() *timestamppb.Timestamp + func (x *Equipment) GetId() int32 + func (x *Equipment) GetName() string + func (x *Equipment) GetUpdateTime() *timestamppb.Timestamp + func (x *Equipment) ProtoReflect() protoreflect.Message + func (x *Equipment) Reset() + func (x *Equipment) String() string + type EquipmentService struct + func NewEquipmentService(client *ent.Client) *EquipmentService + func (svc *EquipmentService) Create(ctx context.Context, req *CreateEquipmentRequest) (*Equipment, error) + func (svc *EquipmentService) Delete(ctx context.Context, req *DeleteEquipmentRequest) (*emptypb.Empty, error) + func (svc *EquipmentService) Get(ctx context.Context, req *GetEquipmentRequest) (*Equipment, error) + func (svc *EquipmentService) Update(ctx context.Context, req *UpdateEquipmentRequest) (*Equipment, error) + type EquipmentServiceClient interface + Create func(ctx context.Context, in *CreateEquipmentRequest, opts ...grpc.CallOption) (*Equipment, error) + Delete func(ctx context.Context, in *DeleteEquipmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetEquipmentRequest, opts ...grpc.CallOption) (*Equipment, error) + Update func(ctx context.Context, in *UpdateEquipmentRequest, opts ...grpc.CallOption) (*Equipment, error) + func NewEquipmentServiceClient(cc grpc.ClientConnInterface) EquipmentServiceClient + type EquipmentServiceServer interface + Create func(context.Context, *CreateEquipmentRequest) (*Equipment, error) + Delete func(context.Context, *DeleteEquipmentRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetEquipmentRequest) (*Equipment, error) + Update func(context.Context, *UpdateEquipmentRequest) (*Equipment, error) + type GetEquipmentRequest struct + Id int32 + View GetEquipmentRequest_View + func (*GetEquipmentRequest) Descriptor() ([]byte, []int) + func (*GetEquipmentRequest) ProtoMessage() + func (x *GetEquipmentRequest) GetId() int32 + func (x *GetEquipmentRequest) GetView() GetEquipmentRequest_View + func (x *GetEquipmentRequest) ProtoReflect() protoreflect.Message + func (x *GetEquipmentRequest) Reset() + func (x *GetEquipmentRequest) String() string + type GetEquipmentRequest_View int32 + const GetEquipmentRequest_BASIC + const GetEquipmentRequest_VIEW_UNSPECIFIED + const GetEquipmentRequest_WITH_EDGE_IDS + func (GetEquipmentRequest_View) Descriptor() protoreflect.EnumDescriptor + func (GetEquipmentRequest_View) EnumDescriptor() ([]byte, []int) + func (GetEquipmentRequest_View) Type() protoreflect.EnumType + func (x GetEquipmentRequest_View) Enum() *GetEquipmentRequest_View + func (x GetEquipmentRequest_View) Number() protoreflect.EnumNumber + func (x GetEquipmentRequest_View) String() string + type GetVehicleRequest struct + Id int32 + View GetVehicleRequest_View + func (*GetVehicleRequest) Descriptor() ([]byte, []int) + func (*GetVehicleRequest) ProtoMessage() + func (x *GetVehicleRequest) GetId() int32 + func (x *GetVehicleRequest) GetView() GetVehicleRequest_View + func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message + func (x *GetVehicleRequest) Reset() + func (x *GetVehicleRequest) String() string + type GetVehicleRequest_View int32 + const GetVehicleRequest_BASIC + const GetVehicleRequest_VIEW_UNSPECIFIED + const GetVehicleRequest_WITH_EDGE_IDS + func (GetVehicleRequest_View) Descriptor() protoreflect.EnumDescriptor + func (GetVehicleRequest_View) EnumDescriptor() ([]byte, []int) + func (GetVehicleRequest_View) Type() protoreflect.EnumType + func (x GetVehicleRequest_View) Enum() *GetVehicleRequest_View + func (x GetVehicleRequest_View) Number() protoreflect.EnumNumber + func (x GetVehicleRequest_View) String() string + type UnimplementedEquipmentServiceServer struct + func (UnimplementedEquipmentServiceServer) Create(context.Context, *CreateEquipmentRequest) (*Equipment, error) + func (UnimplementedEquipmentServiceServer) Delete(context.Context, *DeleteEquipmentRequest) (*emptypb.Empty, error) + func (UnimplementedEquipmentServiceServer) Get(context.Context, *GetEquipmentRequest) (*Equipment, error) + func (UnimplementedEquipmentServiceServer) Update(context.Context, *UpdateEquipmentRequest) (*Equipment, error) + type UnimplementedVehicleServiceServer struct + func (UnimplementedVehicleServiceServer) Create(context.Context, *CreateVehicleRequest) (*Vehicle, error) + func (UnimplementedVehicleServiceServer) Delete(context.Context, *DeleteVehicleRequest) (*emptypb.Empty, error) + func (UnimplementedVehicleServiceServer) Get(context.Context, *GetVehicleRequest) (*Vehicle, error) + func (UnimplementedVehicleServiceServer) Update(context.Context, *UpdateVehicleRequest) (*Vehicle, error) + type UnsafeEquipmentServiceServer interface + type UnsafeVehicleServiceServer interface + type UpdateEquipmentRequest struct + Equipment *Equipment + func (*UpdateEquipmentRequest) Descriptor() ([]byte, []int) + func (*UpdateEquipmentRequest) ProtoMessage() + func (x *UpdateEquipmentRequest) GetEquipment() *Equipment + func (x *UpdateEquipmentRequest) ProtoReflect() protoreflect.Message + func (x *UpdateEquipmentRequest) Reset() + func (x *UpdateEquipmentRequest) String() string + type UpdateVehicleRequest struct + Vehicle *Vehicle + func (*UpdateVehicleRequest) Descriptor() ([]byte, []int) + func (*UpdateVehicleRequest) ProtoMessage() + func (x *UpdateVehicleRequest) GetVehicle() *Vehicle + func (x *UpdateVehicleRequest) ProtoReflect() protoreflect.Message + func (x *UpdateVehicleRequest) Reset() + func (x *UpdateVehicleRequest) String() string + type Vehicle struct + Active *wrapperspb.BoolValue + Condition *wrapperspb.StringValue + CreateTime *timestamppb.Timestamp + Id int32 + Make string + Miles *wrapperspb.Int64Value + Model string + Mpg *wrapperspb.Int64Value + Owner *wrapperspb.StringValue + UpdateTime *timestamppb.Timestamp + Year *wrapperspb.StringValue + func (*Vehicle) Descriptor() ([]byte, []int) + func (*Vehicle) ProtoMessage() + func (x *Vehicle) GetActive() *wrapperspb.BoolValue + func (x *Vehicle) GetCondition() *wrapperspb.StringValue + func (x *Vehicle) GetCreateTime() *timestamppb.Timestamp + func (x *Vehicle) GetId() int32 + func (x *Vehicle) GetMake() string + func (x *Vehicle) GetMiles() *wrapperspb.Int64Value + func (x *Vehicle) GetModel() string + func (x *Vehicle) GetMpg() *wrapperspb.Int64Value + func (x *Vehicle) GetOwner() *wrapperspb.StringValue + func (x *Vehicle) GetUpdateTime() *timestamppb.Timestamp + func (x *Vehicle) GetYear() *wrapperspb.StringValue + func (x *Vehicle) ProtoReflect() protoreflect.Message + func (x *Vehicle) Reset() + func (x *Vehicle) String() string + type VehicleService struct + func NewVehicleService(client *ent.Client) *VehicleService + func (svc *VehicleService) Create(ctx context.Context, req *CreateVehicleRequest) (*Vehicle, error) + func (svc *VehicleService) Delete(ctx context.Context, req *DeleteVehicleRequest) (*emptypb.Empty, error) + func (svc *VehicleService) Get(ctx context.Context, req *GetVehicleRequest) (*Vehicle, error) + func (svc *VehicleService) Update(ctx context.Context, req *UpdateVehicleRequest) (*Vehicle, error) + type VehicleServiceClient interface + Create func(ctx context.Context, in *CreateVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error) + Delete func(ctx context.Context, in *DeleteVehicleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error) + Update func(ctx context.Context, in *UpdateVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error) + func NewVehicleServiceClient(cc grpc.ClientConnInterface) VehicleServiceClient + type VehicleServiceServer interface + Create func(context.Context, *CreateVehicleRequest) (*Vehicle, error) + Delete func(context.Context, *DeleteVehicleRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetVehicleRequest) (*Vehicle, error) + Update func(context.Context, *UpdateVehicleRequest) (*Vehicle, error)