services

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoDB

type GeoDB struct {
	// contains filtered or unexported fields
}

func NewGeoDB

func NewGeoDB(db *badger.DB, hub *stream.Hub, gmaps *maps.Client) *GeoDB

func (*GeoDB) Delete

func (p *GeoDB) Delete(ctx context.Context, r *api.DeleteRequest) (*api.DeleteResponse, error)

func (*GeoDB) Get

func (p *GeoDB) Get(ctx context.Context, r *api.GetRequest) (*api.GetResponse, error)

func (*GeoDB) GetKeys

func (p *GeoDB) GetKeys(ctx context.Context, r *api.GetKeysRequest) (*api.GetKeysResponse, error)

func (*GeoDB) GetPoint

func (p *GeoDB) GetPoint(ctx context.Context, r *api.GetPointRequest) (*api.GetPointResponse, error)

func (*GeoDB) GetPrefix

func (p *GeoDB) GetPrefix(ctx context.Context, r *api.GetPrefixRequest) (*api.GetPrefixResponse, error)

func (*GeoDB) GetPrefixKeys

func (*GeoDB) GetRegex

func (p *GeoDB) GetRegex(ctx context.Context, r *api.GetRegexRequest) (*api.GetRegexResponse, error)

func (*GeoDB) GetRegexKeys

func (*GeoDB) Ping

func (p *GeoDB) Ping(ctx context.Context, req *api.PingRequest) (*api.PingResponse, error)

func (*GeoDB) ScanBound

func (p *GeoDB) ScanBound(ctx context.Context, r *api.ScanBoundRequest) (*api.ScanBoundResponse, error)

func (*GeoDB) ScanPrefixBound

func (*GeoDB) ScanRegexBound

func (*GeoDB) Set

func (p *GeoDB) Set(ctx context.Context, r *api.SetRequest) (*api.SetResponse, error)

func (*GeoDB) Stream

func (p *GeoDB) Stream(r *api.StreamRequest, ss api.GeoDB_StreamServer) error

func (*GeoDB) StreamPrefix

func (*GeoDB) StreamRegex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL