Documentation ¶
Overview ¶
Package esiMarkets is a generated protocol buffer package.
It is generated from these files:
esiMarkets.proto
It has these top-level messages:
GetOrderRequest GetRegionRequest GetTypeRequest GetRegionTypeRequest GetOrdersResponse GetRegionTypeUpdateStreamResponse RegionType Order
Package esiMarkets is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterESIMarketsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterESIMarketsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ESIMarketsClient) error
- func RegisterESIMarketsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterESIMarketsServer(s *grpc.Server, srv ESIMarketsServer)
- type ESIMarketsClient
- type ESIMarketsServer
- type ESIMarkets_GetRegionTypeUpdateStreamClient
- type ESIMarkets_GetRegionTypeUpdateStreamServer
- type GetOrderRequest
- type GetOrdersResponse
- type GetRegionRequest
- type GetRegionTypeRequest
- type GetRegionTypeUpdateStreamResponse
- func (*GetRegionTypeUpdateStreamResponse) Descriptor() ([]byte, []int)
- func (m *GetRegionTypeUpdateStreamResponse) GetRegionTypes() []*RegionType
- func (*GetRegionTypeUpdateStreamResponse) ProtoMessage()
- func (m *GetRegionTypeUpdateStreamResponse) Reset()
- func (m *GetRegionTypeUpdateStreamResponse) String() string
- type GetTypeRequest
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetDuration() int32
- func (m *Order) GetIsBuyOrder() bool
- func (m *Order) GetIssued() *google_protobuf2.Timestamp
- func (m *Order) GetLocationId() uint64
- func (m *Order) GetMinVolume() uint64
- func (m *Order) GetOrderId() uint64
- func (m *Order) GetPrice() float64
- func (m *Order) GetRange() string
- func (m *Order) GetRegionId() uint64
- func (m *Order) GetSeenAt() *google_protobuf2.Timestamp
- func (m *Order) GetTypeId() uint64
- func (m *Order) GetVolumeRemain() uint64
- func (m *Order) GetVolumeTotal() uint64
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) String() string
- type RegionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterESIMarketsHandler ¶
func RegisterESIMarketsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterESIMarketsHandler registers the http handlers for service ESIMarkets to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterESIMarketsHandlerClient ¶
func RegisterESIMarketsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ESIMarketsClient) error
RegisterESIMarketsHandler registers the http handlers for service ESIMarkets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ESIMarketsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ESIMarketsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ESIMarketsClient" to call the correct interceptors.
func RegisterESIMarketsHandlerFromEndpoint ¶
func RegisterESIMarketsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterESIMarketsHandlerFromEndpoint is same as RegisterESIMarketsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterESIMarketsServer ¶
func RegisterESIMarketsServer(s *grpc.Server, srv ESIMarketsServer)
Types ¶
type ESIMarketsClient ¶
type ESIMarketsClient interface { GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*GetOrdersResponse, error) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetOrdersResponse, error) GetType(ctx context.Context, in *GetTypeRequest, opts ...grpc.CallOption) (*GetOrdersResponse, error) GetRegionType(ctx context.Context, in *GetRegionTypeRequest, opts ...grpc.CallOption) (*GetOrdersResponse, error) GetRegionTypeUpdateStream(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (ESIMarkets_GetRegionTypeUpdateStreamClient, error) }
func NewESIMarketsClient ¶
func NewESIMarketsClient(cc *grpc.ClientConn) ESIMarketsClient
type ESIMarketsServer ¶
type ESIMarketsServer interface { GetOrder(context.Context, *GetOrderRequest) (*GetOrdersResponse, error) GetRegion(context.Context, *GetRegionRequest) (*GetOrdersResponse, error) GetType(context.Context, *GetTypeRequest) (*GetOrdersResponse, error) GetRegionType(context.Context, *GetRegionTypeRequest) (*GetOrdersResponse, error) GetRegionTypeUpdateStream(*google_protobuf1.Empty, ESIMarkets_GetRegionTypeUpdateStreamServer) error }
type ESIMarkets_GetRegionTypeUpdateStreamClient ¶
type ESIMarkets_GetRegionTypeUpdateStreamClient interface { Recv() (*GetRegionTypeUpdateStreamResponse, error) grpc.ClientStream }
type ESIMarkets_GetRegionTypeUpdateStreamServer ¶
type ESIMarkets_GetRegionTypeUpdateStreamServer interface { Send(*GetRegionTypeUpdateStreamResponse) error grpc.ServerStream }
type GetOrderRequest ¶
type GetOrderRequest struct { // Fetch recorded history of an order OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId" json:"order_id,omitempty"` }
func (*GetOrderRequest) Descriptor ¶
func (*GetOrderRequest) Descriptor() ([]byte, []int)
func (*GetOrderRequest) GetOrderId ¶
func (m *GetOrderRequest) GetOrderId() uint64
func (*GetOrderRequest) ProtoMessage ¶
func (*GetOrderRequest) ProtoMessage()
func (*GetOrderRequest) Reset ¶
func (m *GetOrderRequest) Reset()
func (*GetOrderRequest) String ¶
func (m *GetOrderRequest) String() string
type GetOrdersResponse ¶
type GetOrdersResponse struct { // Matching orders Orders []*Order `protobuf:"bytes,1,rep,name=orders" json:"orders,omitempty"` }
func (*GetOrdersResponse) Descriptor ¶
func (*GetOrdersResponse) Descriptor() ([]byte, []int)
func (*GetOrdersResponse) GetOrders ¶
func (m *GetOrdersResponse) GetOrders() []*Order
func (*GetOrdersResponse) ProtoMessage ¶
func (*GetOrdersResponse) ProtoMessage()
func (*GetOrdersResponse) Reset ¶
func (m *GetOrdersResponse) Reset()
func (*GetOrdersResponse) String ¶
func (m *GetOrdersResponse) String() string
type GetRegionRequest ¶
type GetRegionRequest struct { // Defines which region the data is fetched for RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` }
func (*GetRegionRequest) Descriptor ¶
func (*GetRegionRequest) Descriptor() ([]byte, []int)
func (*GetRegionRequest) GetRegionId ¶
func (m *GetRegionRequest) GetRegionId() uint64
func (*GetRegionRequest) ProtoMessage ¶
func (*GetRegionRequest) ProtoMessage()
func (*GetRegionRequest) Reset ¶
func (m *GetRegionRequest) Reset()
func (*GetRegionRequest) String ¶
func (m *GetRegionRequest) String() string
type GetRegionTypeRequest ¶
type GetRegionTypeRequest struct { // Defines which region the data is fetched for RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` // Defines which type the data is fetched for TypeId uint64 `protobuf:"varint,2,opt,name=type_id,json=typeId" json:"type_id,omitempty"` }
func (*GetRegionTypeRequest) Descriptor ¶
func (*GetRegionTypeRequest) Descriptor() ([]byte, []int)
func (*GetRegionTypeRequest) GetRegionId ¶
func (m *GetRegionTypeRequest) GetRegionId() uint64
func (*GetRegionTypeRequest) GetTypeId ¶
func (m *GetRegionTypeRequest) GetTypeId() uint64
func (*GetRegionTypeRequest) ProtoMessage ¶
func (*GetRegionTypeRequest) ProtoMessage()
func (*GetRegionTypeRequest) Reset ¶
func (m *GetRegionTypeRequest) Reset()
func (*GetRegionTypeRequest) String ¶
func (m *GetRegionTypeRequest) String() string
type GetRegionTypeUpdateStreamResponse ¶
type GetRegionTypeUpdateStreamResponse struct { // Region/tye pairs affected by update RegionTypes []*RegionType `protobuf:"bytes,1,rep,name=region_types,json=regionTypes" json:"region_types,omitempty"` }
func (*GetRegionTypeUpdateStreamResponse) Descriptor ¶
func (*GetRegionTypeUpdateStreamResponse) Descriptor() ([]byte, []int)
func (*GetRegionTypeUpdateStreamResponse) GetRegionTypes ¶
func (m *GetRegionTypeUpdateStreamResponse) GetRegionTypes() []*RegionType
func (*GetRegionTypeUpdateStreamResponse) ProtoMessage ¶
func (*GetRegionTypeUpdateStreamResponse) ProtoMessage()
func (*GetRegionTypeUpdateStreamResponse) Reset ¶
func (m *GetRegionTypeUpdateStreamResponse) Reset()
func (*GetRegionTypeUpdateStreamResponse) String ¶
func (m *GetRegionTypeUpdateStreamResponse) String() string
type GetTypeRequest ¶
type GetTypeRequest struct { // Defines which type the data is fetched for TypeId uint64 `protobuf:"varint,1,opt,name=type_id,json=typeId" json:"type_id,omitempty"` }
func (*GetTypeRequest) Descriptor ¶
func (*GetTypeRequest) Descriptor() ([]byte, []int)
func (*GetTypeRequest) GetTypeId ¶
func (m *GetTypeRequest) GetTypeId() uint64
func (*GetTypeRequest) ProtoMessage ¶
func (*GetTypeRequest) ProtoMessage()
func (*GetTypeRequest) Reset ¶
func (m *GetTypeRequest) Reset()
func (*GetTypeRequest) String ¶
func (m *GetTypeRequest) String() string
type Order ¶
type Order struct { // The order's ID OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId" json:"order_id,omitempty"` // The order's type's ID TypeId uint64 `protobuf:"varint,2,opt,name=type_id,json=typeId" json:"type_id,omitempty"` // The order's region's ID RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId" json:"region_id,omitempty"` // ID of the order's location/station LocationId uint64 `protobuf:"varint,4,opt,name=location_id,json=locationId" json:"location_id,omitempty"` // Initital number of items of the order VolumeTotal uint64 `protobuf:"varint,5,opt,name=volume_total,json=volumeTotal" json:"volume_total,omitempty"` // Number of items remaining VolumeRemain uint64 `protobuf:"varint,6,opt,name=volume_remain,json=volumeRemain" json:"volume_remain,omitempty"` // Minimum volume to be traded for this order MinVolume uint64 `protobuf:"varint,7,opt,name=min_volume,json=minVolume" json:"min_volume,omitempty"` // The price the type is bought/sold for Price float64 `protobuf:"fixed64,8,opt,name=price" json:"price,omitempty"` // True: Bid/buy order | False: ask/sell order IsBuyOrder bool `protobuf:"varint,9,opt,name=is_buy_order,json=isBuyOrder" json:"is_buy_order,omitempty"` // Defines how long the order exists after creation Duration int32 `protobuf:"varint,10,opt,name=duration" json:"duration,omitempty"` // Order's range Range string `protobuf:"bytes,11,opt,name=range" json:"range,omitempty"` // Date the order was issued Issued *google_protobuf2.Timestamp `protobuf:"bytes,12,opt,name=issued" json:"issued,omitempty"` // When the order was last seen in this state: when using market-streamer the last-modified date from EMDRToNSQService SeenAt *google_protobuf2.Timestamp `protobuf:"bytes,13,opt,name=seen_at,json=seenAt" json:"seen_at,omitempty"` }
func (*Order) Descriptor ¶
func (*Order) GetDuration ¶
func (*Order) GetIsBuyOrder ¶
func (*Order) GetIssued ¶
func (m *Order) GetIssued() *google_protobuf2.Timestamp
func (*Order) GetLocationId ¶
func (*Order) GetMinVolume ¶
func (*Order) GetOrderId ¶
func (*Order) GetRegionId ¶
func (*Order) GetSeenAt ¶
func (m *Order) GetSeenAt() *google_protobuf2.Timestamp
func (*Order) GetVolumeRemain ¶
func (*Order) GetVolumeTotal ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
type RegionType ¶
type RegionType struct { // The update's region's ID RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` // The update's type's ID TypeId uint64 `protobuf:"varint,2,opt,name=type_id,json=typeId" json:"type_id,omitempty"` }
func (*RegionType) Descriptor ¶
func (*RegionType) Descriptor() ([]byte, []int)
func (*RegionType) GetRegionId ¶
func (m *RegionType) GetRegionId() uint64
func (*RegionType) GetTypeId ¶
func (m *RegionType) GetTypeId() uint64
func (*RegionType) ProtoMessage ¶
func (*RegionType) ProtoMessage()
func (*RegionType) Reset ¶
func (m *RegionType) Reset()
func (*RegionType) String ¶
func (m *RegionType) String() string