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.
Types ¶
type AllStructures ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Structure) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Structure) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Structure) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface