Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_segment_segment_proto protoreflect.FileDescriptor + func NewSegmentEndpoints() []*api.Endpoint + func RegisterSegmentHandler(s server.Server, hdlr SegmentHandler, opts ...server.HandlerOption) error + type IdRequest struct + Id uint32 + func (*IdRequest) Descriptor() ([]byte, []int) + func (*IdRequest) ProtoMessage() + func (x *IdRequest) GetId() uint32 + func (x *IdRequest) ProtoReflect() protoreflect.Message + func (x *IdRequest) Reset() + func (x *IdRequest) String() string + type Query struct + Page uint32 + PerPage uint32 + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type SegmentHandler interface + GetSegmentByID func(context.Context, *IdRequest, *SegmentResponse) error + GetSegments func(context.Context, *Query, *SegmentsResponse) error + type SegmentResponse struct + AddWeight uint32 + CarrierTypes uint32 + Direction int32 + EndPoint uint32 + EndsAsEndPoint uint32 + Length uint32 + PlcBits uint32 + PlcWord uint32 + PlcWord2 uint32 + Remark string + SegmentID uint32 + SegmentTemplate string + StartPoint uint32 + StartsAsStartPoint uint32 + TravelTime uint32 + Vehicle string + func (*SegmentResponse) Descriptor() ([]byte, []int) + func (*SegmentResponse) ProtoMessage() + func (x *SegmentResponse) GetAddWeight() uint32 + func (x *SegmentResponse) GetCarrierTypes() uint32 + func (x *SegmentResponse) GetDirection() int32 + func (x *SegmentResponse) GetEndPoint() uint32 + func (x *SegmentResponse) GetEndsAsEndPoint() uint32 + func (x *SegmentResponse) GetLength() uint32 + func (x *SegmentResponse) GetPlcBits() uint32 + func (x *SegmentResponse) GetPlcWord() uint32 + func (x *SegmentResponse) GetPlcWord2() uint32 + func (x *SegmentResponse) GetRemark() string + func (x *SegmentResponse) GetSegmentID() uint32 + func (x *SegmentResponse) GetSegmentTemplate() string + func (x *SegmentResponse) GetStartPoint() uint32 + func (x *SegmentResponse) GetStartsAsStartPoint() uint32 + func (x *SegmentResponse) GetTravelTime() uint32 + func (x *SegmentResponse) GetVehicle() string + func (x *SegmentResponse) ProtoReflect() protoreflect.Message + func (x *SegmentResponse) Reset() + func (x *SegmentResponse) String() string + type SegmentService interface + GetSegmentByID func(ctx context.Context, in *IdRequest, opts ...client.CallOption) (*SegmentResponse, error) + GetSegments func(ctx context.Context, in *Query, opts ...client.CallOption) (*SegmentsResponse, error) + func NewSegmentService(name string, c client.Client) SegmentService + type SegmentsResponse struct + Segments []*SegmentResponse + TotalNumber uint32 + Totalpages uint32 + func (*SegmentsResponse) Descriptor() ([]byte, []int) + func (*SegmentsResponse) ProtoMessage() + func (x *SegmentsResponse) GetSegments() []*SegmentResponse + func (x *SegmentsResponse) GetTotalNumber() uint32 + func (x *SegmentsResponse) GetTotalpages() uint32 + func (x *SegmentsResponse) ProtoReflect() protoreflect.Message + func (x *SegmentsResponse) Reset() + func (x *SegmentsResponse) String() string