Documentation ¶
Index ¶
- func Init(ctx context.Context, c *configs.Config) (store.Store, error)
- type Client
- func (c *Client) CreateLocation(ctx context.Context, loc types.CreateLocationRequest) (*types.Location, error)
- func (c *Client) CreateLocationIndexes(ctx context.Context) error
- func (c *Client) DeleteLocation(ctx context.Context, id string) (int, error)
- func (c *Client) GetLocationByID(ctx context.Context, id string) (types.Location, error)
- func (c *Client) GetLocations(ctx context.Context, query types.FindLocationsRequest) ([]types.Location, int64, error)
- func (c *Client) LocationsCollection() *mongo.Collection
- func (c *Client) ReverseGeoCodeLocations(ctx context.Context, query types.LookupLocationRequest) ([]types.Location, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) CreateLocation ¶
func (*Client) CreateLocationIndexes ¶
func (*Client) DeleteLocation ¶
func (*Client) GetLocationByID ¶
func (*Client) GetLocations ¶
func (*Client) LocationsCollection ¶
func (c *Client) LocationsCollection() *mongo.Collection
func (*Client) ReverseGeoCodeLocations ¶
Click to show internal directories.
Click to hide internal directories.