Documentation ¶
Index ¶
- Variables
- func RegisterEquipServiceServer(s grpc.ServiceRegistrar, srv EquipServiceServer)
- func RegisterPointServiceServer(s grpc.ServiceRegistrar, srv PointServiceServer)
- type DeleteResponse
- type Empty
- type Equip
- func (*Equip) Descriptor() ([]byte, []int)deprecated
- func (x *Equip) GetDateCreated() *timestamppb.Timestamp
- func (x *Equip) GetEnabled() bool
- func (x *Equip) GetLastUpdated() *timestamppb.Timestamp
- func (x *Equip) GetName() string
- func (x *Equip) GetUuid() string
- func (*Equip) ProtoMessage()
- func (x *Equip) ProtoReflect() protoreflect.Message
- func (x *Equip) Reset()
- func (x *Equip) String() string
- type EquipList
- type EquipServiceClient
- type EquipServiceServer
- type EquipUUID
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLimit() uint32
- func (x *ListRequest) GetOffset() uint32
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type Point
- func (*Point) Descriptor() ([]byte, []int)deprecated
- func (x *Point) GetDateCreated() *timestamppb.Timestamp
- func (x *Point) GetEnabled() bool
- func (x *Point) GetEquipUuid() string
- func (x *Point) GetLastUpdated() *timestamppb.Timestamp
- func (x *Point) GetName() string
- func (*Point) ProtoMessage()
- func (x *Point) ProtoReflect() protoreflect.Message
- func (x *Point) Reset()
- func (x *Point) String() string
- type PointList
- type PointServiceClient
- type PointServiceServer
- type PointUUID
- type UnimplementedEquipServiceServer
- func (UnimplementedEquipServiceServer) Create(context.Context, *Equip) (*Equip, error)
- func (UnimplementedEquipServiceServer) Delete(context.Context, *EquipUUID) (*DeleteResponse, error)
- func (UnimplementedEquipServiceServer) Get(context.Context, *EquipUUID) (*Equip, error)
- func (UnimplementedEquipServiceServer) GetAll(context.Context, *ListRequest) (*EquipList, error)
- func (UnimplementedEquipServiceServer) Update(context.Context, *Equip) (*Equip, error)
- type UnimplementedPointServiceServer
- func (UnimplementedPointServiceServer) Create(context.Context, *Point) (*Point, error)
- func (UnimplementedPointServiceServer) Delete(context.Context, *PointUUID) (*DeleteResponse, error)
- func (UnimplementedPointServiceServer) Get(context.Context, *PointUUID) (*Point, error)
- func (UnimplementedPointServiceServer) GetAll(context.Context, *ListRequest) (*PointList, error)
- func (UnimplementedPointServiceServer) GetAllByEquipUUID(context.Context, *EquipUUID) (*PointList, error)
- func (UnimplementedPointServiceServer) Update(context.Context, *Point) (*Point, error)
- type UnsafeEquipServiceServer
- type UnsafePointServiceServer
Constants ¶
This section is empty.
Variables ¶
var EquipService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.EquipService", HandlerType: (*EquipServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _EquipService_Get_Handler, }, { MethodName: "GetAll", Handler: _EquipService_GetAll_Handler, }, { MethodName: "Create", Handler: _EquipService_Create_Handler, }, { MethodName: "Update", Handler: _EquipService_Update_Handler, }, { MethodName: "Delete", Handler: _EquipService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "equip_service.proto", }
EquipService_ServiceDesc is the grpc.ServiceDesc for EquipService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_common_proto protoreflect.FileDescriptor
var File_equip_proto protoreflect.FileDescriptor
var File_equip_service_proto protoreflect.FileDescriptor
var File_point_proto protoreflect.FileDescriptor
var File_point_service_proto protoreflect.FileDescriptor
var PointService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.PointService", HandlerType: (*PointServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _PointService_Get_Handler, }, { MethodName: "GetAll", Handler: _PointService_GetAll_Handler, }, { MethodName: "Create", Handler: _PointService_Create_Handler, }, { MethodName: "Update", Handler: _PointService_Update_Handler, }, { MethodName: "Delete", Handler: _PointService_Delete_Handler, }, { MethodName: "GetAllByEquipUUID", Handler: _PointService_GetAllByEquipUUID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "point_service.proto", }
PointService_ServiceDesc is the grpc.ServiceDesc for PointService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEquipServiceServer ¶
func RegisterEquipServiceServer(s grpc.ServiceRegistrar, srv EquipServiceServer)
func RegisterPointServiceServer ¶
func RegisterPointServiceServer(s grpc.ServiceRegistrar, srv PointServiceServer)
Types ¶
type DeleteResponse ¶
type DeleteResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetSuccess ¶
func (x *DeleteResponse) GetSuccess() bool
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Equip ¶
type Equip struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` DateCreated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"` LastUpdated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"` // contains filtered or unexported fields }
func (*Equip) Descriptor
deprecated
func (*Equip) GetDateCreated ¶
func (x *Equip) GetDateCreated() *timestamppb.Timestamp
func (*Equip) GetEnabled ¶
func (*Equip) GetLastUpdated ¶
func (x *Equip) GetLastUpdated() *timestamppb.Timestamp
func (*Equip) ProtoMessage ¶
func (*Equip) ProtoMessage()
func (*Equip) ProtoReflect ¶
func (x *Equip) ProtoReflect() protoreflect.Message
type EquipList ¶
type EquipList struct { Equips []*Equip `protobuf:"bytes,1,rep,name=Equips,proto3" json:"Equips,omitempty"` // contains filtered or unexported fields }
func (*EquipList) Descriptor
deprecated
func (*EquipList) ProtoMessage ¶
func (*EquipList) ProtoMessage()
func (*EquipList) ProtoReflect ¶
func (x *EquipList) ProtoReflect() protoreflect.Message
type EquipServiceClient ¶
type EquipServiceClient interface { Get(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*Equip, error) GetAll(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*EquipList, error) Create(ctx context.Context, in *Equip, opts ...grpc.CallOption) (*Equip, error) Update(ctx context.Context, in *Equip, opts ...grpc.CallOption) (*Equip, error) Delete(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*DeleteResponse, error) }
EquipServiceClient is the client API for EquipService 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.
func NewEquipServiceClient ¶
func NewEquipServiceClient(cc grpc.ClientConnInterface) EquipServiceClient
type EquipServiceServer ¶
type EquipServiceServer interface { Get(context.Context, *EquipUUID) (*Equip, error) GetAll(context.Context, *ListRequest) (*EquipList, error) Create(context.Context, *Equip) (*Equip, error) Update(context.Context, *Equip) (*Equip, error) Delete(context.Context, *EquipUUID) (*DeleteResponse, error) // contains filtered or unexported methods }
EquipServiceServer is the server API for EquipService service. All implementations must embed UnimplementedEquipServiceServer for forward compatibility
type EquipUUID ¶
type EquipUUID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EquipUUID) Descriptor
deprecated
func (*EquipUUID) ProtoMessage ¶
func (*EquipUUID) ProtoMessage()
func (*EquipUUID) ProtoReflect ¶
func (x *EquipUUID) ProtoReflect() protoreflect.Message
type ListRequest ¶
type ListRequest struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() uint32
func (*ListRequest) GetOffset ¶
func (x *ListRequest) GetOffset() uint32
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type Point ¶
type Point struct { EquipUuid string `protobuf:"bytes,1,opt,name=equipUuid,proto3" json:"equipUuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` DateCreated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"` LastUpdated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"` // contains filtered or unexported fields }
func (*Point) Descriptor
deprecated
func (*Point) GetDateCreated ¶
func (x *Point) GetDateCreated() *timestamppb.Timestamp
func (*Point) GetEnabled ¶
func (*Point) GetEquipUuid ¶
func (*Point) GetLastUpdated ¶
func (x *Point) GetLastUpdated() *timestamppb.Timestamp
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
type PointList ¶
type PointList struct { Points []*Point `protobuf:"bytes,1,rep,name=Points,proto3" json:"Points,omitempty"` // contains filtered or unexported fields }
func (*PointList) Descriptor
deprecated
func (*PointList) ProtoMessage ¶
func (*PointList) ProtoMessage()
func (*PointList) ProtoReflect ¶
func (x *PointList) ProtoReflect() protoreflect.Message
type PointServiceClient ¶
type PointServiceClient interface { Get(ctx context.Context, in *PointUUID, opts ...grpc.CallOption) (*Point, error) GetAll(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*PointList, error) Create(ctx context.Context, in *Point, opts ...grpc.CallOption) (*Point, error) Update(ctx context.Context, in *Point, opts ...grpc.CallOption) (*Point, error) Delete(ctx context.Context, in *PointUUID, opts ...grpc.CallOption) (*DeleteResponse, error) GetAllByEquipUUID(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*PointList, error) }
PointServiceClient is the client API for PointService 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.
func NewPointServiceClient ¶
func NewPointServiceClient(cc grpc.ClientConnInterface) PointServiceClient
type PointServiceServer ¶
type PointServiceServer interface { Get(context.Context, *PointUUID) (*Point, error) GetAll(context.Context, *ListRequest) (*PointList, error) Create(context.Context, *Point) (*Point, error) Update(context.Context, *Point) (*Point, error) Delete(context.Context, *PointUUID) (*DeleteResponse, error) GetAllByEquipUUID(context.Context, *EquipUUID) (*PointList, error) // contains filtered or unexported methods }
PointServiceServer is the server API for PointService service. All implementations must embed UnimplementedPointServiceServer for forward compatibility
type PointUUID ¶
type PointUUID struct { EquipUuid string `protobuf:"bytes,1,opt,name=equipUuid,proto3" json:"equipUuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PointUUID) Descriptor
deprecated
func (*PointUUID) GetEquipUuid ¶
func (*PointUUID) ProtoMessage ¶
func (*PointUUID) ProtoMessage()
func (*PointUUID) ProtoReflect ¶
func (x *PointUUID) ProtoReflect() protoreflect.Message
type UnimplementedEquipServiceServer ¶
type UnimplementedEquipServiceServer struct { }
UnimplementedEquipServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEquipServiceServer) Delete ¶
func (UnimplementedEquipServiceServer) Delete(context.Context, *EquipUUID) (*DeleteResponse, error)
func (UnimplementedEquipServiceServer) GetAll ¶
func (UnimplementedEquipServiceServer) GetAll(context.Context, *ListRequest) (*EquipList, error)
type UnimplementedPointServiceServer ¶
type UnimplementedPointServiceServer struct { }
UnimplementedPointServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPointServiceServer) Delete ¶
func (UnimplementedPointServiceServer) Delete(context.Context, *PointUUID) (*DeleteResponse, error)
func (UnimplementedPointServiceServer) GetAll ¶
func (UnimplementedPointServiceServer) GetAll(context.Context, *ListRequest) (*PointList, error)
func (UnimplementedPointServiceServer) GetAllByEquipUUID ¶
type UnsafeEquipServiceServer ¶
type UnsafeEquipServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEquipServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EquipServiceServer will result in compilation errors.
type UnsafePointServiceServer ¶
type UnsafePointServiceServer interface {
// contains filtered or unexported methods
}
UnsafePointServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PointServiceServer will result in compilation errors.