diskcache

package
v0.0.0-...-95221f7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetOverpassData

func SetOverpassData(conn *Conn, bounds *domain.ActivityBounds, geographicMapElements []*domain.GeographicMapElement) error

Types

type Conn

type Conn struct {
	*bolt.DB
}

func NewConn

func NewConn(path string) (*Conn, error)

type OverpassCacheEntry

type OverpassCacheEntry struct {
	Elements   []*domain.GeographicMapElement
	CachedTime time.Time
}

func GetOverpassData

func GetOverpassData(conn *Conn, bounds *domain.ActivityBounds) (*OverpassCacheEntry, error)

GetOverpassResponse retrieves from the cache the elements for a given bounds if it was cached, nil if it has not yet been cached, or an error.

Jump to

Keyboard shortcuts

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