go_micro_srv_point

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_point_point_proto protoreflect.FileDescriptor

Functions

func NewPointEndpoints

func NewPointEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.

func (*IdRequest) GetId

func (x *IdRequest) GetId() uint32

func (*IdRequest) ProtoMessage

func (*IdRequest) ProtoMessage()

func (*IdRequest) ProtoReflect

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

func (*IdRequest) Reset

func (x *IdRequest) Reset()

func (*IdRequest) String

func (x *IdRequest) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetLimit

func (x *Query) GetLimit() uint32

func (*Query) GetOffset

func (x *Query) GetOffset() uint32

func (*Query) GetPage

func (x *Query) GetPage() uint32

func (*Query) GetPerPage

func (x *Query) GetPerPage() uint32

func (*Query) GetQueryString

func (x *Query) GetQueryString() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

Jump to

Keyboard shortcuts

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