locations

package
v0.0.0-...-73210b2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocations

func GetLocations(context context.Context, request *pb.GetLocationsRequest) (*pb.GetLocationsResponse, error)

GetLocations returns location info for a given list.

func Initialize

func Initialize(esi *goesi.APIClient, gen *http.Client, url string, database *bolt.DB)

Initialize initializes infrastructure for locations

Types

type AllStructures

type AllStructures map[string]Structure

AllStructures contains the response of https://stop.hammerti.me.uk/api/structure/all.

func (AllStructures) MarshalEasyJSON

func (v AllStructures) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AllStructures) MarshalJSON

func (v AllStructures) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AllStructures) UnmarshalEasyJSON

func (v *AllStructures) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AllStructures) UnmarshalJSON

func (v *AllStructures) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CachedLocation

type CachedLocation struct {
	ID        int64       `json:"id"`
	ExpiresAt int64       `json:"expiresAt"`
	Location  pb.Location `json:"location"`
}

CachedLocation represents a location chache entry with expiration date.

func (CachedLocation) MarshalEasyJSON

func (v CachedLocation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CachedLocation) MarshalJSON

func (v CachedLocation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CachedLocation) UnmarshalEasyJSON

func (v *CachedLocation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CachedLocation) UnmarshalJSON

func (v *CachedLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Structure

type Structure struct {
	TypeID      int64          `json:"typeId"`
	Name        string         `json:"name"`
	RegionID    int64          `json:"regionId"`
	Coordinates pb.Coordinates `json:"location"`
	TypeName    string         `json:"typeName"`
	SystemID    int64          `json:"systemId"`
	LastSeen    time.Time      `json:"lastSeen"`
	SystemName  string         `json:"systemName"`
	Public      bool           `json:"public"`
	FirstSeen   time.Time      `json:"firstSeen"`
	RegionName  string         `json:"regionName"`
}

Structure stores an individual structure from AllStructures.

func (Structure) MarshalEasyJSON

func (v Structure) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Structure) MarshalJSON

func (v Structure) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Structure) UnmarshalEasyJSON

func (v *Structure) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Structure) UnmarshalJSON

func (v *Structure) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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