Versions in this module Expand all Collapse all v1 v1.15.1 Nov 7, 2019 Changes in this version + type Client struct + func NewClient(tracer opentracing.Tracer, logger log.Factory, hostPort string) *Client + func (c *Client) FindNearest(ctx context.Context, location string) ([]Driver, error) + type Driver struct + DriverID string + Location string + type Interface interface + FindNearest func(ctx context.Context, location string) ([]Driver, error) + type Redis struct + func (r *Redis) FindDriverIDs(ctx context.Context, location string) []string + func (r *Redis) GetDriver(ctx context.Context, driverID string) (Driver, error) + type Server struct + func NewServer(hostPort string, tracer opentracing.Tracer, metricsFactory metrics.Factory, ...) *Server + func (s *Server) FindNearest(ctx thrift.Context, location string) ([]*driver.DriverLocation, error) + func (s *Server) Run() error