bus

package
v0.0.0-...-6aeb9b8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BusStore

type BusStore interface {
	FindBus(s2.LatLng) (Bus, error)
	Store(Bus)
}

type MemoryBusStore

type MemoryBusStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMemoryBusStore

func NewMemoryBusStore() *MemoryBusStore

func (*MemoryBusStore) FindBus

func (bs *MemoryBusStore) FindBus(client s2.LatLng) (Bus, error)

Find bus goes over the list of buses and finds the nearest one

func (*MemoryBusStore) Store

func (bs *MemoryBusStore) Store(bus Bus)

Store bus data

Jump to

Keyboard shortcuts

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