Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_station_station_proto protoreflect.FileDescriptor + func NewStationEndpoints() []*api.Endpoint + func RegisterStationHandler(s server.Server, hdlr StationHandler, opts ...server.HandlerOption) error + type GraphqlQuery struct + Query string + func (*GraphqlQuery) Descriptor() ([]byte, []int) + func (*GraphqlQuery) ProtoMessage() + func (x *GraphqlQuery) GetQuery() string + func (x *GraphqlQuery) ProtoReflect() protoreflect.Message + func (x *GraphqlQuery) Reset() + func (x *GraphqlQuery) String() string + type GraphqlStations struct + Response string + func (*GraphqlStations) Descriptor() ([]byte, []int) + func (*GraphqlStations) ProtoMessage() + func (x *GraphqlStations) GetResponse() string + func (x *GraphqlStations) ProtoReflect() protoreflect.Message + func (x *GraphqlStations) Reset() + func (x *GraphqlStations) String() string + 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 StationHandler interface + GetStationByID func(context.Context, *IdRequest, *StationResponse) error + GetStations func(context.Context, *Query, *StationsResponse) error + type StationResponse struct + Angle uint32 + CarrierTypes uint32 + PointID uint32 + Remark string + StationID uint32 + StationName string + SysModes uint32 + Type string + X uint32 + Y uint32 + func (*StationResponse) Descriptor() ([]byte, []int) + func (*StationResponse) ProtoMessage() + func (x *StationResponse) GetAngle() uint32 + func (x *StationResponse) GetCarrierTypes() uint32 + func (x *StationResponse) GetPointID() uint32 + func (x *StationResponse) GetRemark() string + func (x *StationResponse) GetStationID() uint32 + func (x *StationResponse) GetStationName() string + func (x *StationResponse) GetSysModes() uint32 + func (x *StationResponse) GetType() string + func (x *StationResponse) GetX() uint32 + func (x *StationResponse) GetY() uint32 + func (x *StationResponse) ProtoReflect() protoreflect.Message + func (x *StationResponse) Reset() + func (x *StationResponse) String() string + type StationService interface + GetStationByID func(ctx context.Context, in *IdRequest, opts ...client.CallOption) (*StationResponse, error) + GetStations func(ctx context.Context, in *Query, opts ...client.CallOption) (*StationsResponse, error) + func NewStationService(name string, c client.Client) StationService + type StationsResponse struct + Stations []*StationResponse + TotalNumber uint32 + Totalpages uint32 + func (*StationsResponse) Descriptor() ([]byte, []int) + func (*StationsResponse) ProtoMessage() + func (x *StationsResponse) GetStations() []*StationResponse + func (x *StationsResponse) GetTotalNumber() uint32 + func (x *StationsResponse) GetTotalpages() uint32 + func (x *StationsResponse) ProtoReflect() protoreflect.Message + func (x *StationsResponse) Reset() + func (x *StationsResponse) String() string