Documentation ¶
Index ¶
- type Options
- type Server
- func (s *Server) DebugGetHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Get(ctx context.Context, req *insidesvc.GetRequest) (resp *insidesvc.GetResponse, terr error)
- func (s *Server) IndexStab(lat, lng float64) ([]*insideout.Feature, error)
- func (s *Server) Within(ctx context.Context, req *insidesvc.WithinRequest) (resp *insidesvc.WithinResponse, terr error)
- func (s *Server) WithinHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server exposes indexes services.
func New ¶
func New(ctx context.Context, storage insideout.Store, logger log.Logger, healthServer *health.Server, opts Options) (*Server, error)
New returns a Server.
func (*Server) DebugGetHandler ¶
func (s *Server) DebugGetHandler(w http.ResponseWriter, r *http.Request)
DebugGetHandler HTTP 1.1 Handler to debug a feature.
func (*Server) Within ¶
func (s *Server) Within( ctx context.Context, req *insidesvc.WithinRequest, ) (resp *insidesvc.WithinResponse, terr error)
Within query exposed via gRPC.
func (*Server) WithinHandler ¶
func (s *Server) WithinHandler(w http.ResponseWriter, r *http.Request)
WithinHandler HTTP 1.1 Handler to query within returns GeoJSON.
Click to show internal directories.
Click to hide internal directories.