go_micro_srv_agv

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_agv_agv_proto protoreflect.FileDescriptor

Functions

func NewAgvEndpoints

func NewAgvEndpoints() []*api.Endpoint

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

Deprecated: Use AgvError.ProtoReflect.Descriptor instead.

func (*AgvError) GetAgvID

func (x *AgvError) GetAgvID() uint32

func (*AgvError) GetEndTime

func (x *AgvError) GetEndTime() string

func (*AgvError) GetErrorCode

func (x *AgvError) GetErrorCode() uint32

func (*AgvError) GetPointID

func (x *AgvError) GetPointID() uint32

func (*AgvError) GetStartTime

func (x *AgvError) GetStartTime() string

func (*AgvError) ProtoMessage

func (*AgvError) ProtoMessage()

func (*AgvError) ProtoReflect

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

func (*AgvError) Reset

func (x *AgvError) Reset()

func (*AgvError) String

func (x *AgvError) String() string

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

Deprecated: Use AgvErrors.ProtoReflect.Descriptor instead.

func (*AgvErrors) GetAgvError

func (x *AgvErrors) GetAgvError() []*AgvError

func (*AgvErrors) GetTotalCount

func (x *AgvErrors) GetTotalCount() uint32

func (*AgvErrors) ProtoMessage

func (*AgvErrors) ProtoMessage()

func (*AgvErrors) ProtoReflect

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

func (*AgvErrors) Reset

func (x *AgvErrors) Reset()

func (*AgvErrors) String

func (x *AgvErrors) String() string

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

Deprecated: Use AgvReq.ProtoReflect.Descriptor instead.

func (*AgvReq) GetAgvID

func (x *AgvReq) GetAgvID() uint32

func (*AgvReq) ProtoMessage

func (*AgvReq) ProtoMessage()

func (*AgvReq) ProtoReflect

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

func (*AgvReq) Reset

func (x *AgvReq) Reset()

func (*AgvReq) String

func (x *AgvReq) String() string

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

Deprecated: Use ErrFilter.ProtoReflect.Descriptor instead.

func (*ErrFilter) GetAgvIn

func (x *ErrFilter) GetAgvIn() []uint32

func (*ErrFilter) GetAnd

func (x *ErrFilter) GetAnd() []*ErrFilter

func (*ErrFilter) GetErrorIn

func (x *ErrFilter) GetErrorIn() []uint32

func (*ErrFilter) GetFromTime

func (x *ErrFilter) GetFromTime() string

func (*ErrFilter) GetOr

func (x *ErrFilter) GetOr() []*ErrFilter

func (*ErrFilter) GetToTime

func (x *ErrFilter) GetToTime() string

func (*ErrFilter) ProtoMessage

func (*ErrFilter) ProtoMessage()

func (*ErrFilter) ProtoReflect

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

func (*ErrFilter) Reset

func (x *ErrFilter) Reset()

func (*ErrFilter) String

func (x *ErrFilter) String() string

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

Deprecated: Use IDRequest.ProtoReflect.Descriptor instead.

func (*IDRequest) GetStatusID

func (x *IDRequest) GetStatusID() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Loglevel.ProtoReflect.Descriptor instead.

func (*Loglevel) GetLevel

func (x *Loglevel) GetLevel() uint32

func (*Loglevel) GetName

func (x *Loglevel) GetName() string

func (*Loglevel) ProtoMessage

func (*Loglevel) ProtoMessage()

func (*Loglevel) ProtoReflect

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

func (*Loglevel) Reset

func (x *Loglevel) Reset()

func (*Loglevel) String

func (x *Loglevel) String() string

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetPage

func (x *Query) GetPage() uint32

func (*Query) GetPerPage

func (x *Query) GetPerPage() uint32

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

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

Deprecated: Use StatusMsg.ProtoReflect.Descriptor instead.

func (*StatusMsg) GetStatusColor

func (x *StatusMsg) GetStatusColor() string

func (*StatusMsg) GetStatusID

func (x *StatusMsg) GetStatusID() uint32

func (*StatusMsg) GetStatusText

func (x *StatusMsg) GetStatusText() string

func (*StatusMsg) ProtoMessage

func (*StatusMsg) ProtoMessage()

func (*StatusMsg) ProtoReflect

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

func (*StatusMsg) Reset

func (x *StatusMsg) Reset()

func (*StatusMsg) String

func (x *StatusMsg) String() string

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

Jump to

Keyboard shortcuts

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