Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_route_route_proto protoreflect.FileDescriptor + func NewRouteEndpoints() []*api.Endpoint + func RegisterRouteHandler(s server.Server, hdlr RouteHandler, opts ...server.HandlerOption) error + type GetRouteRequest struct + Val1 uint32 + Val2 uint32 + func (*GetRouteRequest) Descriptor() ([]byte, []int) + func (*GetRouteRequest) ProtoMessage() + func (x *GetRouteRequest) GetVal1() uint32 + func (x *GetRouteRequest) GetVal2() uint32 + func (x *GetRouteRequest) ProtoReflect() protoreflect.Message + func (x *GetRouteRequest) Reset() + func (x *GetRouteRequest) String() string + type GetRouteResponse struct + Res bool + Segments []uint32 + Weight uint32 + func (*GetRouteResponse) Descriptor() ([]byte, []int) + func (*GetRouteResponse) ProtoMessage() + func (x *GetRouteResponse) GetRes() bool + func (x *GetRouteResponse) GetSegments() []uint32 + func (x *GetRouteResponse) GetWeight() uint32 + func (x *GetRouteResponse) ProtoReflect() protoreflect.Message + func (x *GetRouteResponse) Reset() + func (x *GetRouteResponse) String() string + type GetStationListRequest struct + Val1 uint32 + func (*GetStationListRequest) Descriptor() ([]byte, []int) + func (*GetStationListRequest) ProtoMessage() + func (x *GetStationListRequest) GetVal1() uint32 + func (x *GetStationListRequest) ProtoReflect() protoreflect.Message + func (x *GetStationListRequest) Reset() + func (x *GetStationListRequest) String() string + type GetStationListResponse struct + Res bool + Stations []*StationWeight + func (*GetStationListResponse) Descriptor() ([]byte, []int) + func (*GetStationListResponse) ProtoMessage() + func (x *GetStationListResponse) GetRes() bool + func (x *GetStationListResponse) GetStations() []*StationWeight + func (x *GetStationListResponse) ProtoReflect() protoreflect.Message + func (x *GetStationListResponse) Reset() + func (x *GetStationListResponse) String() string + type MapFile struct + FileName string + Filebytes []byte + func (*MapFile) Descriptor() ([]byte, []int) + func (*MapFile) ProtoMessage() + func (x *MapFile) GetFileName() string + func (x *MapFile) GetFilebytes() []byte + func (x *MapFile) ProtoReflect() protoreflect.Message + func (x *MapFile) Reset() + func (x *MapFile) String() string + type MapFiles struct + Files []*MapFile + func (*MapFiles) Descriptor() ([]byte, []int) + func (*MapFiles) ProtoMessage() + func (x *MapFiles) GetFiles() []*MapFile + func (x *MapFiles) ProtoReflect() protoreflect.Message + func (x *MapFiles) Reset() + func (x *MapFiles) String() string + type Request struct + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type Response struct + Message string + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) GetMessage() string + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type RouteHandler interface + GetRouteFromStnToStn func(context.Context, *GetRouteRequest, *GetRouteResponse) error + GetStationListFromStn func(context.Context, *GetStationListRequest, *GetStationListResponse) error + HideRoute func(context.Context, *GetRouteRequest, *Response) error + LoadMapFiles func(context.Context, *MapFiles, *Response) error + ShowRoute func(context.Context, *GetRouteRequest, *Response) error + SortStationList func(context.Context, *StationsRequest, *GetStationListResponse) error + type RouteService interface + GetRouteFromStnToStn func(ctx context.Context, in *GetRouteRequest, opts ...client.CallOption) (*GetRouteResponse, error) + GetStationListFromStn func(ctx context.Context, in *GetStationListRequest, opts ...client.CallOption) (*GetStationListResponse, error) + HideRoute func(ctx context.Context, in *GetRouteRequest, opts ...client.CallOption) (*Response, error) + LoadMapFiles func(ctx context.Context, in *MapFiles, opts ...client.CallOption) (*Response, error) + ShowRoute func(ctx context.Context, in *GetRouteRequest, opts ...client.CallOption) (*Response, error) + SortStationList func(ctx context.Context, in *StationsRequest, opts ...client.CallOption) (*GetStationListResponse, error) + func NewRouteService(name string, c client.Client) RouteService + type StationWeight struct + StationID uint32 + Weight uint32 + func (*StationWeight) Descriptor() ([]byte, []int) + func (*StationWeight) ProtoMessage() + func (x *StationWeight) GetStationID() uint32 + func (x *StationWeight) GetWeight() uint32 + func (x *StationWeight) ProtoReflect() protoreflect.Message + func (x *StationWeight) Reset() + func (x *StationWeight) String() string + type StationsRequest struct + StartStn uint32 + Stations []uint32 + func (*StationsRequest) Descriptor() ([]byte, []int) + func (*StationsRequest) ProtoMessage() + func (x *StationsRequest) GetStartStn() uint32 + func (x *StationsRequest) GetStations() []uint32 + func (x *StationsRequest) ProtoReflect() protoreflect.Message + func (x *StationsRequest) Reset() + func (x *StationsRequest) String() string