route

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidPoint = &pb.Point{Latitude: 0, Longitude: 0}
View Source
var Rect = &pb.Rectangle{
	Lo: &pb.Point{Latitude: 410000000, Longitude: -740000000},
	Hi: &pb.Point{Latitude: 415000000, Longitude: -745000000},
}
View Source
var ValidPoint = &pb.Point{Latitude: 409146138, Longitude: -746188906}

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(server string, opts ClientOptions) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) GetFeature

func (c *Client) GetFeature(ctx context.Context, point *pb.Point) (*pb.Feature, error)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context) (*healthpb.HealthCheckResponse, error)

func (*Client) ListFeatures

func (c *Client) ListFeatures(ctx context.Context, rect *pb.Rectangle) ([]*pb.Feature, error)

func (*Client) RecordRoute

func (c *Client) RecordRoute(ctx context.Context) (*pb.RouteSummary, error)

func (*Client) RouteChat

func (c *Client) RouteChat(ctx context.Context) ([]*pb.RouteNote, error)

type ClientOptions

type ClientOptions struct {
	Timeout time.Duration
	TLS     TLSOptions
}

type TLSOptions

type TLSOptions struct {
	Enabled    bool
	CA         string
	ServerHost string
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL