Documentation ¶
Index ¶
- Variables
- func NewAgvEndpoints() []*api.Endpoint
- func RegisterAgvHandler(s server.Server, hdlr AgvHandler, opts ...server.HandlerOption) error
- type AgvError
- func (*AgvError) Descriptor() ([]byte, []int)deprecated
- func (x *AgvError) GetAgvID() uint32
- func (x *AgvError) GetEndTime() string
- func (x *AgvError) GetErrorCode() uint32
- func (x *AgvError) GetPointID() uint32
- func (x *AgvError) GetStartTime() string
- func (*AgvError) ProtoMessage()
- func (x *AgvError) ProtoReflect() protoreflect.Message
- func (x *AgvError) Reset()
- func (x *AgvError) String() string
- type AgvErrors
- type AgvHandler
- type AgvMessage
- func (*AgvMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AgvMessage) GetAngle() uint32
- func (x *AgvMessage) GetBattery() uint32
- func (x *AgvMessage) GetId() uint32
- func (x *AgvMessage) GetPlc() uint32
- func (x *AgvMessage) GetPoint() uint32
- func (x *AgvMessage) GetSegment() uint32
- func (x *AgvMessage) GetStatus() uint32
- func (x *AgvMessage) GetType() uint32
- func (x *AgvMessage) GetX() uint32
- func (x *AgvMessage) GetY() uint32
- func (*AgvMessage) ProtoMessage()
- func (x *AgvMessage) ProtoReflect() protoreflect.Message
- func (x *AgvMessage) Reset()
- func (x *AgvMessage) String() string
- type AgvReq
- type AgvService
- type AgvsResponse
- type ErrFilter
- func (*ErrFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ErrFilter) GetAgvIn() []uint32
- func (x *ErrFilter) GetAnd() []*ErrFilter
- func (x *ErrFilter) GetErrorIn() []uint32
- func (x *ErrFilter) GetFromTime() string
- func (x *ErrFilter) GetOr() []*ErrFilter
- func (x *ErrFilter) GetToTime() string
- func (*ErrFilter) ProtoMessage()
- func (x *ErrFilter) ProtoReflect() protoreflect.Message
- func (x *ErrFilter) Reset()
- func (x *ErrFilter) String() string
- type ErrReportItem
- func (*ErrReportItem) Descriptor() ([]byte, []int)deprecated
- func (x *ErrReportItem) GetCount() uint32
- func (x *ErrReportItem) GetName() string
- func (*ErrReportItem) ProtoMessage()
- func (x *ErrReportItem) ProtoReflect() protoreflect.Message
- func (x *ErrReportItem) Reset()
- func (x *ErrReportItem) String() string
- type ErrReportItems
- func (*ErrReportItems) Descriptor() ([]byte, []int)deprecated
- func (x *ErrReportItems) GetItem() []*ErrReportItem
- func (x *ErrReportItems) GetTotalCount() uint32
- func (*ErrReportItems) ProtoMessage()
- func (x *ErrReportItems) ProtoReflect() protoreflect.Message
- func (x *ErrReportItems) Reset()
- func (x *ErrReportItems) String() string
- type ErrReportReq
- func (*ErrReportReq) Descriptor() ([]byte, []int)deprecated
- func (x *ErrReportReq) GetCode() uint32
- func (x *ErrReportReq) GetEndTime() string
- func (x *ErrReportReq) GetStartTime() string
- func (*ErrReportReq) ProtoMessage()
- func (x *ErrReportReq) ProtoReflect() protoreflect.Message
- func (x *ErrReportReq) Reset()
- func (x *ErrReportReq) String() string
- type IDRequest
- type LogLevelRequest
- type LogResponse
- type Loglevel
- type Query
- type QueryError
- func (*QueryError) Descriptor() ([]byte, []int)deprecated
- func (x *QueryError) GetFilter() *ErrFilter
- func (x *QueryError) GetPage() uint32
- func (x *QueryError) GetPerPage() uint32
- func (*QueryError) ProtoMessage()
- func (x *QueryError) ProtoReflect() protoreflect.Message
- func (x *QueryError) Reset()
- func (x *QueryError) String() string
- type Request
- type Response
- type StatusMsg
- func (*StatusMsg) Descriptor() ([]byte, []int)deprecated
- func (x *StatusMsg) GetStatusColor() string
- func (x *StatusMsg) GetStatusID() uint32
- func (x *StatusMsg) GetStatusText() string
- func (*StatusMsg) ProtoMessage()
- func (x *StatusMsg) ProtoReflect() protoreflect.Message
- func (x *StatusMsg) Reset()
- func (x *StatusMsg) String() string
- type StatusMsgs
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_agv_agv_proto protoreflect.FileDescriptor
Functions ¶
func NewAgvEndpoints ¶
func RegisterAgvHandler ¶
func RegisterAgvHandler(s server.Server, hdlr AgvHandler, opts ...server.HandlerOption) error
Types ¶
type AgvError ¶
type AgvError struct { AgvID uint32 `protobuf:"varint,1,opt,name=agvID,proto3" json:"agvID,omitempty"` ErrorCode uint32 `protobuf:"varint,2,opt,name=errorCode,proto3" json:"errorCode,omitempty"` PointID uint32 `protobuf:"varint,3,opt,name=pointID,proto3" json:"pointID,omitempty"` StartTime string `protobuf:"bytes,4,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,5,opt,name=endTime,proto3" json:"endTime,omitempty"` // contains filtered or unexported fields }
func (*AgvError) Descriptor
deprecated
func (*AgvError) GetEndTime ¶
func (*AgvError) GetErrorCode ¶
func (*AgvError) GetPointID ¶
func (*AgvError) GetStartTime ¶
func (*AgvError) ProtoMessage ¶
func (*AgvError) ProtoMessage()
func (*AgvError) ProtoReflect ¶
func (x *AgvError) ProtoReflect() protoreflect.Message
type AgvErrors ¶
type AgvErrors struct { AgvError []*AgvError `protobuf:"bytes,1,rep,name=agvError,proto3" json:"agvError,omitempty"` TotalCount uint32 `protobuf:"varint,2,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"` // contains filtered or unexported fields }
func (*AgvErrors) Descriptor
deprecated
func (*AgvErrors) GetAgvError ¶
func (*AgvErrors) GetTotalCount ¶
func (*AgvErrors) ProtoMessage ¶
func (*AgvErrors) ProtoMessage()
func (*AgvErrors) ProtoReflect ¶
func (x *AgvErrors) ProtoReflect() protoreflect.Message
type AgvHandler ¶
type AgvHandler interface { //获取AGV故障报表// GetAgvErrReport(context.Context, *ErrReportReq, *ErrReportItems) error //获取AGV故障日志// GetAgvErrors(context.Context, *QueryError, *AgvErrors) error //获取一个AGV数据// GetAgvByID(context.Context, *AgvReq, *AgvMessage) error //获取所有的AGV数据// GetAgvs(context.Context, *Query, *AgvsResponse) error //急停单台AGV// StopAgvByID(context.Context, *AgvReq, *Response) error //急停所有AGV// StopAgvs(context.Context, *Request, *Response) error //更新状态配置// UpdateStatusConfig(context.Context, *StatusMsg, *Response) error //获取状态配置// GetStatusConfigs(context.Context, *Request, *StatusMsgs) error //获取一个状态配置信息// GetStatusConfig(context.Context, *IDRequest, *StatusMsg) error //获取服务日志等级 GetLogLevel(context.Context, *LogLevelRequest, *Loglevel) error //设置服务日志等级 SetLogLevel(context.Context, *Loglevel, *LogResponse) error }
type AgvMessage ¶
type AgvMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` X uint32 `protobuf:"varint,3,opt,name=x,proto3" json:"x,omitempty"` Y uint32 `protobuf:"varint,4,opt,name=y,proto3" json:"y,omitempty"` Angle uint32 `protobuf:"varint,5,opt,name=angle,proto3" json:"angle,omitempty"` Point uint32 `protobuf:"varint,6,opt,name=point,proto3" json:"point,omitempty"` Segment uint32 `protobuf:"varint,7,opt,name=segment,proto3" json:"segment,omitempty"` Battery uint32 `protobuf:"varint,8,opt,name=battery,proto3" json:"battery,omitempty"` Plc uint32 `protobuf:"varint,9,opt,name=plc,proto3" json:"plc,omitempty"` Status uint32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AgvMessage) Descriptor
deprecated
func (*AgvMessage) Descriptor() ([]byte, []int)
Deprecated: Use AgvMessage.ProtoReflect.Descriptor instead.
func (*AgvMessage) GetAngle ¶
func (x *AgvMessage) GetAngle() uint32
func (*AgvMessage) GetBattery ¶
func (x *AgvMessage) GetBattery() uint32
func (*AgvMessage) GetId ¶
func (x *AgvMessage) GetId() uint32
func (*AgvMessage) GetPlc ¶
func (x *AgvMessage) GetPlc() uint32
func (*AgvMessage) GetPoint ¶
func (x *AgvMessage) GetPoint() uint32
func (*AgvMessage) GetSegment ¶
func (x *AgvMessage) GetSegment() uint32
func (*AgvMessage) GetStatus ¶
func (x *AgvMessage) GetStatus() uint32
func (*AgvMessage) GetType ¶
func (x *AgvMessage) GetType() uint32
func (*AgvMessage) GetX ¶
func (x *AgvMessage) GetX() uint32
func (*AgvMessage) GetY ¶
func (x *AgvMessage) GetY() uint32
func (*AgvMessage) ProtoMessage ¶
func (*AgvMessage) ProtoMessage()
func (*AgvMessage) ProtoReflect ¶
func (x *AgvMessage) ProtoReflect() protoreflect.Message
func (*AgvMessage) Reset ¶
func (x *AgvMessage) Reset()
func (*AgvMessage) String ¶
func (x *AgvMessage) String() string
type AgvReq ¶
type AgvReq struct { AgvID uint32 `protobuf:"varint,1,opt,name=agvID,proto3" json:"agvID,omitempty"` // contains filtered or unexported fields }
func (*AgvReq) Descriptor
deprecated
func (*AgvReq) ProtoMessage ¶
func (*AgvReq) ProtoMessage()
func (*AgvReq) ProtoReflect ¶
func (x *AgvReq) ProtoReflect() protoreflect.Message
type AgvService ¶
type AgvService interface { //获取AGV故障报表// GetAgvErrReport(ctx context.Context, in *ErrReportReq, opts ...client.CallOption) (*ErrReportItems, error) //获取AGV故障日志// GetAgvErrors(ctx context.Context, in *QueryError, opts ...client.CallOption) (*AgvErrors, error) //获取一个AGV数据// GetAgvByID(ctx context.Context, in *AgvReq, opts ...client.CallOption) (*AgvMessage, error) //获取所有的AGV数据// GetAgvs(ctx context.Context, in *Query, opts ...client.CallOption) (*AgvsResponse, error) //急停单台AGV// StopAgvByID(ctx context.Context, in *AgvReq, opts ...client.CallOption) (*Response, error) //急停所有AGV// StopAgvs(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) //更新状态配置// UpdateStatusConfig(ctx context.Context, in *StatusMsg, opts ...client.CallOption) (*Response, error) //获取状态配置// GetStatusConfigs(ctx context.Context, in *Request, opts ...client.CallOption) (*StatusMsgs, error) //获取一个状态配置信息// GetStatusConfig(ctx context.Context, in *IDRequest, opts ...client.CallOption) (*StatusMsg, error) //获取服务日志等级 GetLogLevel(ctx context.Context, in *LogLevelRequest, opts ...client.CallOption) (*Loglevel, error) //设置服务日志等级 SetLogLevel(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error) }
func NewAgvService ¶
func NewAgvService(name string, c client.Client) AgvService
type AgvsResponse ¶
type AgvsResponse struct { Agvs []*AgvMessage `protobuf:"bytes,1,rep,name=agvs,proto3" json:"agvs,omitempty"` // contains filtered or unexported fields }
func (*AgvsResponse) Descriptor
deprecated
func (*AgvsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AgvsResponse.ProtoReflect.Descriptor instead.
func (*AgvsResponse) GetAgvs ¶
func (x *AgvsResponse) GetAgvs() []*AgvMessage
func (*AgvsResponse) ProtoMessage ¶
func (*AgvsResponse) ProtoMessage()
func (*AgvsResponse) ProtoReflect ¶
func (x *AgvsResponse) ProtoReflect() protoreflect.Message
func (*AgvsResponse) Reset ¶
func (x *AgvsResponse) Reset()
func (*AgvsResponse) String ¶
func (x *AgvsResponse) String() string
type ErrFilter ¶
type ErrFilter struct { And []*ErrFilter `protobuf:"bytes,1,rep,name=and,proto3" json:"and,omitempty"` Or []*ErrFilter `protobuf:"bytes,2,rep,name=or,proto3" json:"or,omitempty"` FromTime string `protobuf:"bytes,3,opt,name=fromTime,proto3" json:"fromTime,omitempty"` ToTime string `protobuf:"bytes,4,opt,name=toTime,proto3" json:"toTime,omitempty"` AgvIn []uint32 `protobuf:"varint,5,rep,packed,name=agvIn,proto3" json:"agvIn,omitempty"` ErrorIn []uint32 `protobuf:"varint,6,rep,packed,name=errorIn,proto3" json:"errorIn,omitempty"` // contains filtered or unexported fields }
func (*ErrFilter) Descriptor
deprecated
func (*ErrFilter) GetErrorIn ¶
func (*ErrFilter) GetFromTime ¶
func (*ErrFilter) ProtoMessage ¶
func (*ErrFilter) ProtoMessage()
func (*ErrFilter) ProtoReflect ¶
func (x *ErrFilter) ProtoReflect() protoreflect.Message
type ErrReportItem ¶
type ErrReportItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ErrReportItem) Descriptor
deprecated
func (*ErrReportItem) Descriptor() ([]byte, []int)
Deprecated: Use ErrReportItem.ProtoReflect.Descriptor instead.
func (*ErrReportItem) GetCount ¶
func (x *ErrReportItem) GetCount() uint32
func (*ErrReportItem) GetName ¶
func (x *ErrReportItem) GetName() string
func (*ErrReportItem) ProtoMessage ¶
func (*ErrReportItem) ProtoMessage()
func (*ErrReportItem) ProtoReflect ¶
func (x *ErrReportItem) ProtoReflect() protoreflect.Message
func (*ErrReportItem) Reset ¶
func (x *ErrReportItem) Reset()
func (*ErrReportItem) String ¶
func (x *ErrReportItem) String() string
type ErrReportItems ¶
type ErrReportItems struct { Item []*ErrReportItem `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"` TotalCount uint32 `protobuf:"varint,2,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"` // contains filtered or unexported fields }
func (*ErrReportItems) Descriptor
deprecated
func (*ErrReportItems) Descriptor() ([]byte, []int)
Deprecated: Use ErrReportItems.ProtoReflect.Descriptor instead.
func (*ErrReportItems) GetItem ¶
func (x *ErrReportItems) GetItem() []*ErrReportItem
func (*ErrReportItems) GetTotalCount ¶
func (x *ErrReportItems) GetTotalCount() uint32
func (*ErrReportItems) ProtoMessage ¶
func (*ErrReportItems) ProtoMessage()
func (*ErrReportItems) ProtoReflect ¶
func (x *ErrReportItems) ProtoReflect() protoreflect.Message
func (*ErrReportItems) Reset ¶
func (x *ErrReportItems) Reset()
func (*ErrReportItems) String ¶
func (x *ErrReportItems) String() string
type ErrReportReq ¶
type ErrReportReq struct { StartTime string `protobuf:"bytes,1,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,2,opt,name=endTime,proto3" json:"endTime,omitempty"` Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ErrReportReq) Descriptor
deprecated
func (*ErrReportReq) Descriptor() ([]byte, []int)
Deprecated: Use ErrReportReq.ProtoReflect.Descriptor instead.
func (*ErrReportReq) GetCode ¶
func (x *ErrReportReq) GetCode() uint32
func (*ErrReportReq) GetEndTime ¶
func (x *ErrReportReq) GetEndTime() string
func (*ErrReportReq) GetStartTime ¶
func (x *ErrReportReq) GetStartTime() string
func (*ErrReportReq) ProtoMessage ¶
func (*ErrReportReq) ProtoMessage()
func (*ErrReportReq) ProtoReflect ¶
func (x *ErrReportReq) ProtoReflect() protoreflect.Message
func (*ErrReportReq) Reset ¶
func (x *ErrReportReq) Reset()
func (*ErrReportReq) String ¶
func (x *ErrReportReq) String() string
type IDRequest ¶
type IDRequest struct { StatusID uint32 `protobuf:"varint,1,opt,name=statusID,proto3" json:"statusID,omitempty"` // contains filtered or unexported fields }
func (*IDRequest) Descriptor
deprecated
func (*IDRequest) GetStatusID ¶
func (*IDRequest) ProtoMessage ¶
func (*IDRequest) ProtoMessage()
func (*IDRequest) ProtoReflect ¶
func (x *IDRequest) ProtoReflect() protoreflect.Message
type LogLevelRequest ¶
type LogLevelRequest struct {
// contains filtered or unexported fields
}
func (*LogLevelRequest) Descriptor
deprecated
func (*LogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogLevelRequest.ProtoReflect.Descriptor instead.
func (*LogLevelRequest) ProtoMessage ¶
func (*LogLevelRequest) ProtoMessage()
func (*LogLevelRequest) ProtoReflect ¶
func (x *LogLevelRequest) ProtoReflect() protoreflect.Message
func (*LogLevelRequest) Reset ¶
func (x *LogLevelRequest) Reset()
func (*LogLevelRequest) String ¶
func (x *LogLevelRequest) String() string
type LogResponse ¶
type LogResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*LogResponse) Descriptor
deprecated
func (*LogResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.
func (*LogResponse) GetName ¶
func (x *LogResponse) GetName() string
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) ProtoReflect ¶
func (x *LogResponse) ProtoReflect() protoreflect.Message
func (*LogResponse) Reset ¶
func (x *LogResponse) Reset()
func (*LogResponse) String ¶
func (x *LogResponse) String() string
type Loglevel ¶
type Loglevel struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*Loglevel) Descriptor
deprecated
func (*Loglevel) ProtoMessage ¶
func (*Loglevel) ProtoMessage()
func (*Loglevel) ProtoReflect ¶
func (x *Loglevel) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PerPage uint32 `protobuf:"varint,2,opt,name=perPage,proto3" json:"perPage,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetPerPage ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryError ¶
type QueryError struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PerPage uint32 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` Filter *ErrFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*QueryError) Descriptor
deprecated
func (*QueryError) Descriptor() ([]byte, []int)
Deprecated: Use QueryError.ProtoReflect.Descriptor instead.
func (*QueryError) GetFilter ¶
func (x *QueryError) GetFilter() *ErrFilter
func (*QueryError) GetPage ¶
func (x *QueryError) GetPage() uint32
func (*QueryError) GetPerPage ¶
func (x *QueryError) GetPerPage() uint32
func (*QueryError) ProtoMessage ¶
func (*QueryError) ProtoMessage()
func (*QueryError) ProtoReflect ¶
func (x *QueryError) ProtoReflect() protoreflect.Message
func (*QueryError) Reset ¶
func (x *QueryError) Reset()
func (*QueryError) String ¶
func (x *QueryError) String() string
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StatusMsg ¶
type StatusMsg struct { StatusID uint32 `protobuf:"varint,1,opt,name=statusID,proto3" json:"statusID,omitempty"` StatusText string `protobuf:"bytes,2,opt,name=statusText,proto3" json:"statusText,omitempty"` StatusColor string `protobuf:"bytes,3,opt,name=statusColor,proto3" json:"statusColor,omitempty"` // contains filtered or unexported fields }
func (*StatusMsg) Descriptor
deprecated
func (*StatusMsg) GetStatusColor ¶
func (*StatusMsg) GetStatusID ¶
func (*StatusMsg) GetStatusText ¶
func (*StatusMsg) ProtoMessage ¶
func (*StatusMsg) ProtoMessage()
func (*StatusMsg) ProtoReflect ¶
func (x *StatusMsg) ProtoReflect() protoreflect.Message
type StatusMsgs ¶
type StatusMsgs struct { Msgs []*StatusMsg `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` // contains filtered or unexported fields }
func (*StatusMsgs) Descriptor
deprecated
func (*StatusMsgs) Descriptor() ([]byte, []int)
Deprecated: Use StatusMsgs.ProtoReflect.Descriptor instead.
func (*StatusMsgs) GetMsgs ¶
func (x *StatusMsgs) GetMsgs() []*StatusMsg
func (*StatusMsgs) ProtoMessage ¶
func (*StatusMsgs) ProtoMessage()
func (*StatusMsgs) ProtoReflect ¶
func (x *StatusMsgs) ProtoReflect() protoreflect.Message
func (*StatusMsgs) Reset ¶
func (x *StatusMsgs) Reset()
func (*StatusMsgs) String ¶
func (x *StatusMsgs) String() string
Click to show internal directories.
Click to hide internal directories.