Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegisterParams ¶
type RegisterParams struct { fx.In GRPCServer *grpc.Server HTTPServer *shttp.Server GRPCConfig *sgrpc.Config Logger *zap.Logger Tracer opentracing.Tracer Location *location.Location }
RegisterParams for gRPC.
type Server ¶
type Server struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
Server for gRPC.
func (*Server) GetLocationByIP ¶
func (s *Server) GetLocationByIP(ctx context.Context, req *v1.GetLocationByIPRequest) (*v1.GetLocationByIPResponse, error)
GetLocationByIP for gRPC.
func (*Server) GetLocationByLatLng ¶ added in v1.4.0
func (s *Server) GetLocationByLatLng(ctx context.Context, req *v1.GetLocationByLatLngRequest) (*v1.GetLocationByLatLngResponse, error)
GetLocationByLatLng for gRPC.
Click to show internal directories.
Click to hide internal directories.