staticData

package
v0.0.0-...-5d28778 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: 15 Imported by: 0

Documentation

Overview

Package staticData is a generated protocol buffer package.

It is generated from these files:

staticData.proto

It has these top-level messages:

GetLocationsRequest
GetLocationsResponse
Location
Station
Coordinates
SolarSystem
Constellation
Region
GetMarketTypesResponse

Package staticData is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStaticDataHandler

func RegisterStaticDataHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterStaticDataHandler registers the http handlers for service StaticData to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterStaticDataHandlerClient

func RegisterStaticDataHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StaticDataClient) error

RegisterStaticDataHandler registers the http handlers for service StaticData to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StaticDataClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StaticDataClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StaticDataClient" to call the correct interceptors.

func RegisterStaticDataHandlerFromEndpoint

func RegisterStaticDataHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterStaticDataHandlerFromEndpoint is same as RegisterStaticDataHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterStaticDataServer

func RegisterStaticDataServer(s *grpc.Server, srv StaticDataServer)

Types

type Constellation

type Constellation struct {
	// The constellation's id
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The constellation's name
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*Constellation) Descriptor

func (*Constellation) Descriptor() ([]byte, []int)

func (*Constellation) GetId

func (m *Constellation) GetId() int64

func (*Constellation) GetName

func (m *Constellation) GetName() string

func (*Constellation) ProtoMessage

func (*Constellation) ProtoMessage()

func (*Constellation) Reset

func (m *Constellation) Reset()

func (*Constellation) String

func (m *Constellation) String() string

type Coordinates

type Coordinates struct {
	// X-Coordinate
	X float64 `protobuf:"fixed64,1,opt,name=x" json:"x,omitempty"`
	// Y-Coordinate
	Y float64 `protobuf:"fixed64,2,opt,name=y" json:"y,omitempty"`
	// Z-Coordinate
	Z float64 `protobuf:"fixed64,3,opt,name=z" json:"z,omitempty"`
}

func (*Coordinates) Descriptor

func (*Coordinates) Descriptor() ([]byte, []int)

func (*Coordinates) GetX

func (m *Coordinates) GetX() float64

func (*Coordinates) GetY

func (m *Coordinates) GetY() float64

func (*Coordinates) GetZ

func (m *Coordinates) GetZ() float64

func (*Coordinates) ProtoMessage

func (*Coordinates) ProtoMessage()

func (*Coordinates) Reset

func (m *Coordinates) Reset()

func (*Coordinates) String

func (m *Coordinates) String() string

type GetLocationsRequest

type GetLocationsRequest struct {
	// Get data for these location IDs
	LocationIds []int64 `protobuf:"varint,1,rep,packed,name=location_ids,json=locationIds" json:"location_ids,omitempty"`
}

func (*GetLocationsRequest) Descriptor

func (*GetLocationsRequest) Descriptor() ([]byte, []int)

func (*GetLocationsRequest) GetLocationIds

func (m *GetLocationsRequest) GetLocationIds() []int64

func (*GetLocationsRequest) ProtoMessage

func (*GetLocationsRequest) ProtoMessage()

func (*GetLocationsRequest) Reset

func (m *GetLocationsRequest) Reset()

func (*GetLocationsRequest) String

func (m *GetLocationsRequest) String() string

type GetLocationsResponse

type GetLocationsResponse struct {
	// Locations retrieved
	Locations map[int64]*Location `` /* 139-byte string literal not displayed */
}

func (*GetLocationsResponse) Descriptor

func (*GetLocationsResponse) Descriptor() ([]byte, []int)

func (*GetLocationsResponse) GetLocations

func (m *GetLocationsResponse) GetLocations() map[int64]*Location

func (*GetLocationsResponse) ProtoMessage

func (*GetLocationsResponse) ProtoMessage()

func (*GetLocationsResponse) Reset

func (m *GetLocationsResponse) Reset()

func (*GetLocationsResponse) String

func (m *GetLocationsResponse) String() string

type GetMarketTypesResponse

type GetMarketTypesResponse struct {
	// Locations retrieved
	TypeIds []int32 `protobuf:"varint,1,rep,packed,name=type_ids,json=typeIds" json:"type_ids,omitempty"`
}

func (*GetMarketTypesResponse) Descriptor

func (*GetMarketTypesResponse) Descriptor() ([]byte, []int)

func (*GetMarketTypesResponse) GetTypeIds

func (m *GetMarketTypesResponse) GetTypeIds() []int32

func (*GetMarketTypesResponse) ProtoMessage

func (*GetMarketTypesResponse) ProtoMessage()

func (*GetMarketTypesResponse) Reset

func (m *GetMarketTypesResponse) Reset()

func (*GetMarketTypesResponse) String

func (m *GetMarketTypesResponse) String() string

type Location

type Location struct {
	// Information about a region
	Region *Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"`
	// Information about a constellation
	Constellation *Constellation `protobuf:"bytes,2,opt,name=constellation" json:"constellation,omitempty"`
	// Information about a solar system
	SolarSystem *SolarSystem `protobuf:"bytes,3,opt,name=solar_system,json=solarSystem" json:"solar_system,omitempty"`
	// Information about a station
	Station *Station `protobuf:"bytes,4,opt,name=station" json:"station,omitempty"`
}

func (*Location) Descriptor

func (*Location) Descriptor() ([]byte, []int)

func (*Location) GetConstellation

func (m *Location) GetConstellation() *Constellation

func (*Location) GetRegion

func (m *Location) GetRegion() *Region

func (*Location) GetSolarSystem

func (m *Location) GetSolarSystem() *SolarSystem

func (*Location) GetStation

func (m *Location) GetStation() *Station

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

type Region

type Region struct {
	// The region's id
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The region's name
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*Region) Descriptor

func (*Region) Descriptor() ([]byte, []int)

func (*Region) GetId

func (m *Region) GetId() int64

func (*Region) GetName

func (m *Region) GetName() string

func (*Region) ProtoMessage

func (*Region) ProtoMessage()

func (*Region) Reset

func (m *Region) Reset()

func (*Region) String

func (m *Region) String() string

type SolarSystem

type SolarSystem struct {
	// The system's ID
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The system's true security status
	SecurityStatus float64 `protobuf:"fixed64,2,opt,name=security_status,json=securityStatus" json:"security_status,omitempty"`
	// The system's name
	Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
}

func (*SolarSystem) Descriptor

func (*SolarSystem) Descriptor() ([]byte, []int)

func (*SolarSystem) GetId

func (m *SolarSystem) GetId() int64

func (*SolarSystem) GetName

func (m *SolarSystem) GetName() string

func (*SolarSystem) GetSecurityStatus

func (m *SolarSystem) GetSecurityStatus() float64

func (*SolarSystem) ProtoMessage

func (*SolarSystem) ProtoMessage()

func (*SolarSystem) Reset

func (m *SolarSystem) Reset()

func (*SolarSystem) String

func (m *SolarSystem) String() string

type StaticDataClient

type StaticDataClient interface {
	GetLocations(ctx context.Context, in *GetLocationsRequest, opts ...grpc.CallOption) (*GetLocationsResponse, error)
	GetMarketTypes(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*GetMarketTypesResponse, error)
}

func NewStaticDataClient

func NewStaticDataClient(cc *grpc.ClientConn) StaticDataClient

type StaticDataServer

type StaticDataServer interface {
	GetLocations(context.Context, *GetLocationsRequest) (*GetLocationsResponse, error)
	GetMarketTypes(context.Context, *google_protobuf1.Empty) (*GetMarketTypesResponse, error)
}

type Station

type Station struct {
	// The station's ID
	Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// The station's name
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The station's typeID (only for structures)
	TypeId int64 `protobuf:"varint,3,opt,name=type_id,json=typeId" json:"type_id,omitempty"`
	// The station type's name (only for structures)
	TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName" json:"type_name,omitempty"`
	// When the station was last seen (only for structures)
	LastSeen *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen" json:"last_seen,omitempty"`
	// Whether this station is public (only for structures)
	Public bool `protobuf:"varint,6,opt,name=public" json:"public,omitempty"`
	// When the station was first seen (only for structures)
	FirstSeen *google_protobuf2.Timestamp `protobuf:"bytes,7,opt,name=first_seen,json=firstSeen" json:"first_seen,omitempty"`
	// The station's coordinates (only for structures)
	Coordinates *Coordinates `protobuf:"bytes,8,opt,name=coordinates" json:"coordinates,omitempty"`
}

func (*Station) Descriptor

func (*Station) Descriptor() ([]byte, []int)

func (*Station) GetCoordinates

func (m *Station) GetCoordinates() *Coordinates

func (*Station) GetFirstSeen

func (m *Station) GetFirstSeen() *google_protobuf2.Timestamp

func (*Station) GetId

func (m *Station) GetId() int64

func (*Station) GetLastSeen

func (m *Station) GetLastSeen() *google_protobuf2.Timestamp

func (*Station) GetName

func (m *Station) GetName() string

func (*Station) GetPublic

func (m *Station) GetPublic() bool

func (*Station) GetTypeId

func (m *Station) GetTypeId() int64

func (*Station) GetTypeName

func (m *Station) GetTypeName() string

func (*Station) ProtoMessage

func (*Station) ProtoMessage()

func (*Station) Reset

func (m *Station) Reset()

func (*Station) String

func (m *Station) String() string

Jump to

Keyboard shortcuts

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