esiMarkets

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 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

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 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 (*GetRegionTypeUpdateStreamResponse) 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) Descriptor() ([]byte, []int)

func (*Order) GetDuration

func (m *Order) GetDuration() int32

func (*Order) GetIsBuyOrder

func (m *Order) GetIsBuyOrder() bool

func (*Order) GetIssued

func (m *Order) GetIssued() *google_protobuf2.Timestamp

func (*Order) GetLocationId

func (m *Order) GetLocationId() uint64

func (*Order) GetMinVolume

func (m *Order) GetMinVolume() uint64

func (*Order) GetOrderId

func (m *Order) GetOrderId() uint64

func (*Order) GetPrice

func (m *Order) GetPrice() float64

func (*Order) GetRange

func (m *Order) GetRange() string

func (*Order) GetRegionId

func (m *Order) GetRegionId() uint64

func (*Order) GetSeenAt

func (m *Order) GetSeenAt() *google_protobuf2.Timestamp

func (*Order) GetTypeId

func (m *Order) GetTypeId() uint64

func (*Order) GetVolumeRemain

func (m *Order) GetVolumeRemain() uint64

func (*Order) GetVolumeTotal

func (m *Order) GetVolumeTotal() uint64

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) String

func (m *Order) String() string

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

Jump to

Keyboard shortcuts

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