Documentation ¶
Index ¶
- Variables
- func NewPointEndpoints() []*api.Endpoint
- func RegisterPointHandler(s server.Server, hdlr PointHandler, opts ...server.HandlerOption) error
- type IdRequest
- type PointHandler
- type PointResponse
- func (*PointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PointResponse) GetAngle() uint32
- func (x *PointResponse) GetChangeTime() uint32
- func (x *PointResponse) GetCurvature() uint32
- func (x *PointResponse) GetPlcBits() uint32
- func (x *PointResponse) GetPlcWord() uint32
- func (x *PointResponse) GetPlcWord2() uint32
- func (x *PointResponse) GetPointID() uint32
- func (x *PointResponse) GetRemark() string
- func (x *PointResponse) GetX() uint32
- func (x *PointResponse) GetY() uint32
- func (*PointResponse) ProtoMessage()
- func (x *PointResponse) ProtoReflect() protoreflect.Message
- func (x *PointResponse) Reset()
- func (x *PointResponse) String() string
- type PointService
- type PointsResponse
- func (*PointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PointsResponse) GetPoints() []*PointResponse
- func (x *PointsResponse) GetTotalNumber() uint32
- func (x *PointsResponse) GetTotalpages() uint32
- func (*PointsResponse) ProtoMessage()
- func (x *PointsResponse) ProtoReflect() protoreflect.Message
- func (x *PointsResponse) Reset()
- func (x *PointsResponse) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetLimit() uint32
- func (x *Query) GetOffset() uint32
- func (x *Query) GetPage() uint32
- func (x *Query) GetPerPage() uint32
- func (x *Query) GetQueryString() string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_point_point_proto protoreflect.FileDescriptor
Functions ¶
func NewPointEndpoints ¶
func RegisterPointHandler ¶
func RegisterPointHandler(s server.Server, hdlr PointHandler, opts ...server.HandlerOption) error
Types ¶
type IdRequest ¶
type IdRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type PointHandler ¶
type PointHandler interface { //Get point message according to point id GetPointByID(context.Context, *IdRequest, *PointResponse) error //Get all points message GetPoints(context.Context, *Query, *PointsResponse) error }
type PointResponse ¶
type PointResponse struct { PointID uint32 `protobuf:"varint,1,opt,name=pointID,proto3" json:"pointID,omitempty"` X uint32 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"` Y uint32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"` Angle uint32 `protobuf:"varint,4,opt,name=angle,proto3" json:"angle,omitempty"` Curvature uint32 `protobuf:"varint,5,opt,name=curvature,proto3" json:"curvature,omitempty"` PlcBits uint32 `protobuf:"varint,6,opt,name=plcBits,proto3" json:"plcBits,omitempty"` PlcWord uint32 `protobuf:"varint,7,opt,name=plcWord,proto3" json:"plcWord,omitempty"` PlcWord2 uint32 `protobuf:"varint,8,opt,name=plcWord2,proto3" json:"plcWord2,omitempty"` ChangeTime uint32 `protobuf:"varint,9,opt,name=changeTime,proto3" json:"changeTime,omitempty"` Remark string `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
func (*PointResponse) Descriptor
deprecated
func (*PointResponse) Descriptor() ([]byte, []int)
Deprecated: Use PointResponse.ProtoReflect.Descriptor instead.
func (*PointResponse) GetAngle ¶
func (x *PointResponse) GetAngle() uint32
func (*PointResponse) GetChangeTime ¶
func (x *PointResponse) GetChangeTime() uint32
func (*PointResponse) GetCurvature ¶
func (x *PointResponse) GetCurvature() uint32
func (*PointResponse) GetPlcBits ¶
func (x *PointResponse) GetPlcBits() uint32
func (*PointResponse) GetPlcWord ¶
func (x *PointResponse) GetPlcWord() uint32
func (*PointResponse) GetPlcWord2 ¶
func (x *PointResponse) GetPlcWord2() uint32
func (*PointResponse) GetPointID ¶
func (x *PointResponse) GetPointID() uint32
func (*PointResponse) GetRemark ¶
func (x *PointResponse) GetRemark() string
func (*PointResponse) GetX ¶
func (x *PointResponse) GetX() uint32
func (*PointResponse) GetY ¶
func (x *PointResponse) GetY() uint32
func (*PointResponse) ProtoMessage ¶
func (*PointResponse) ProtoMessage()
func (*PointResponse) ProtoReflect ¶
func (x *PointResponse) ProtoReflect() protoreflect.Message
func (*PointResponse) Reset ¶
func (x *PointResponse) Reset()
func (*PointResponse) String ¶
func (x *PointResponse) String() string
type PointService ¶
type PointService interface { //Get point message according to point id GetPointByID(ctx context.Context, in *IdRequest, opts ...client.CallOption) (*PointResponse, error) //Get all points message GetPoints(ctx context.Context, in *Query, opts ...client.CallOption) (*PointsResponse, error) }
func NewPointService ¶
func NewPointService(name string, c client.Client) PointService
type PointsResponse ¶
type PointsResponse struct { Points []*PointResponse `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"` Totalpages uint32 `protobuf:"varint,2,opt,name=totalpages,proto3" json:"totalpages,omitempty"` TotalNumber uint32 `protobuf:"varint,3,opt,name=totalNumber,proto3" json:"totalNumber,omitempty"` // contains filtered or unexported fields }
func (*PointsResponse) Descriptor
deprecated
func (*PointsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PointsResponse.ProtoReflect.Descriptor instead.
func (*PointsResponse) GetPoints ¶
func (x *PointsResponse) GetPoints() []*PointResponse
func (*PointsResponse) GetTotalNumber ¶
func (x *PointsResponse) GetTotalNumber() uint32
func (*PointsResponse) GetTotalpages ¶
func (x *PointsResponse) GetTotalpages() uint32
func (*PointsResponse) ProtoMessage ¶
func (*PointsResponse) ProtoMessage()
func (*PointsResponse) ProtoReflect ¶
func (x *PointsResponse) ProtoReflect() protoreflect.Message
func (*PointsResponse) Reset ¶
func (x *PointsResponse) Reset()
func (*PointsResponse) String ¶
func (x *PointsResponse) String() string
type Query ¶
type Query 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"` Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PerPage uint32 `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"` QueryString string `protobuf:"bytes,5,opt,name=queryString,proto3" json:"queryString,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetPerPage ¶
func (*Query) GetQueryString ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.