Documentation ¶
Index ¶
- Constants
- type GetStocksQueryStock
- type GetStocksQueryStockHandler
- type GetStocksQueryStockHandlerFunc
- type GetStocksQueryStockOK
- type GetStocksQueryStockParams
- type GetStocksQueryStockURL
- func (o *GetStocksQueryStockURL) Build() (*url.URL, error)
- func (o *GetStocksQueryStockURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStocksQueryStockURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStocksQueryStockURL) SetBasePath(bp string)
- func (o *GetStocksQueryStockURL) String() string
- func (o *GetStocksQueryStockURL) StringFull(scheme, host string) string
- func (o *GetStocksQueryStockURL) WithBasePath(bp string) *GetStocksQueryStockURL
- type GetStocksQueryTop
- type GetStocksQueryTopHandler
- type GetStocksQueryTopHandlerFunc
- type GetStocksQueryTopOK
- type GetStocksQueryTopParams
- type GetStocksQueryTopURL
- func (o *GetStocksQueryTopURL) Build() (*url.URL, error)
- func (o *GetStocksQueryTopURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetStocksQueryTopURL) Must(u *url.URL, err error) *url.URL
- func (o *GetStocksQueryTopURL) SetBasePath(bp string)
- func (o *GetStocksQueryTopURL) String() string
- func (o *GetStocksQueryTopURL) StringFull(scheme, host string) string
- func (o *GetStocksQueryTopURL) WithBasePath(bp string) *GetStocksQueryTopURL
Constants ¶
const GetStocksQueryStockOKCode int = 200
GetStocksQueryStockOKCode is the HTTP code returned for type GetStocksQueryStockOK
const GetStocksQueryTopOKCode int = 200
GetStocksQueryTopOKCode is the HTTP code returned for type GetStocksQueryTopOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetStocksQueryStock ¶
type GetStocksQueryStock struct { Context *middleware.Context Handler GetStocksQueryStockHandler }
GetStocksQueryStock swagger:route GET /stocks/queryStock Stock API getStocksQueryStock
Querys information about a specific stock ¶
Querys information about a specific stock
func NewGetStocksQueryStock ¶
func NewGetStocksQueryStock(ctx *middleware.Context, handler GetStocksQueryStockHandler) *GetStocksQueryStock
NewGetStocksQueryStock creates a new http.Handler for the get stocks query stock operation
func (*GetStocksQueryStock) ServeHTTP ¶
func (o *GetStocksQueryStock) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStocksQueryStockHandler ¶
type GetStocksQueryStockHandler interface {
Handle(GetStocksQueryStockParams) middleware.Responder
}
GetStocksQueryStockHandler interface for that can handle valid get stocks query stock params
type GetStocksQueryStockHandlerFunc ¶
type GetStocksQueryStockHandlerFunc func(GetStocksQueryStockParams) middleware.Responder
GetStocksQueryStockHandlerFunc turns a function with the right signature into a get stocks query stock handler
func (GetStocksQueryStockHandlerFunc) Handle ¶
func (fn GetStocksQueryStockHandlerFunc) Handle(params GetStocksQueryStockParams) middleware.Responder
Handle executing the request and returning a response
type GetStocksQueryStockOK ¶
type GetStocksQueryStockOK struct { /* In: Body */ Payload []*models.StockData `json:"body,omitempty"` }
GetStocksQueryStockOK Successful Stock Query
swagger:response getStocksQueryStockOK
func NewGetStocksQueryStockOK ¶
func NewGetStocksQueryStockOK() *GetStocksQueryStockOK
NewGetStocksQueryStockOK creates GetStocksQueryStockOK with default headers values
func (*GetStocksQueryStockOK) SetPayload ¶
func (o *GetStocksQueryStockOK) SetPayload(payload []*models.StockData)
SetPayload sets the payload to the get stocks query stock o k response
func (*GetStocksQueryStockOK) WithPayload ¶
func (o *GetStocksQueryStockOK) WithPayload(payload []*models.StockData) *GetStocksQueryStockOK
WithPayload adds the payload to the get stocks query stock o k response
func (*GetStocksQueryStockOK) WriteResponse ¶
func (o *GetStocksQueryStockOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStocksQueryStockParams ¶
type GetStocksQueryStockParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetStocksQueryStockParams contains all the bound params for the get stocks query stock operation typically these are obtained from a http.Request
swagger:parameters GetStocksQueryStock
func NewGetStocksQueryStockParams ¶
func NewGetStocksQueryStockParams() GetStocksQueryStockParams
NewGetStocksQueryStockParams creates a new GetStocksQueryStockParams object no default values defined in spec.
func (*GetStocksQueryStockParams) BindRequest ¶
func (o *GetStocksQueryStockParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStocksQueryStockParams() beforehand.
type GetStocksQueryStockURL ¶
type GetStocksQueryStockURL struct {
// contains filtered or unexported fields
}
GetStocksQueryStockURL generates an URL for the get stocks query stock operation
func (*GetStocksQueryStockURL) Build ¶
func (o *GetStocksQueryStockURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStocksQueryStockURL) BuildFull ¶
func (o *GetStocksQueryStockURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStocksQueryStockURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStocksQueryStockURL) SetBasePath ¶
func (o *GetStocksQueryStockURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStocksQueryStockURL) String ¶
func (o *GetStocksQueryStockURL) String() string
String returns the string representation of the path with query string
func (*GetStocksQueryStockURL) StringFull ¶
func (o *GetStocksQueryStockURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStocksQueryStockURL) WithBasePath ¶
func (o *GetStocksQueryStockURL) WithBasePath(bp string) *GetStocksQueryStockURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetStocksQueryTop ¶
type GetStocksQueryTop struct { Context *middleware.Context Handler GetStocksQueryTopHandler }
GetStocksQueryTop swagger:route GET /stocks/queryTop Stock API getStocksQueryTop
Querys information about the top N stocks ¶
Querys information about the top N stocks
func NewGetStocksQueryTop ¶
func NewGetStocksQueryTop(ctx *middleware.Context, handler GetStocksQueryTopHandler) *GetStocksQueryTop
NewGetStocksQueryTop creates a new http.Handler for the get stocks query top operation
func (*GetStocksQueryTop) ServeHTTP ¶
func (o *GetStocksQueryTop) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetStocksQueryTopHandler ¶
type GetStocksQueryTopHandler interface {
Handle(GetStocksQueryTopParams) middleware.Responder
}
GetStocksQueryTopHandler interface for that can handle valid get stocks query top params
type GetStocksQueryTopHandlerFunc ¶
type GetStocksQueryTopHandlerFunc func(GetStocksQueryTopParams) middleware.Responder
GetStocksQueryTopHandlerFunc turns a function with the right signature into a get stocks query top handler
func (GetStocksQueryTopHandlerFunc) Handle ¶
func (fn GetStocksQueryTopHandlerFunc) Handle(params GetStocksQueryTopParams) middleware.Responder
Handle executing the request and returning a response
type GetStocksQueryTopOK ¶
type GetStocksQueryTopOK struct { /* In: Body */ Payload []*models.NewsResponse `json:"body,omitempty"` }
GetStocksQueryTopOK Successful Stock Query
swagger:response getStocksQueryTopOK
func NewGetStocksQueryTopOK ¶
func NewGetStocksQueryTopOK() *GetStocksQueryTopOK
NewGetStocksQueryTopOK creates GetStocksQueryTopOK with default headers values
func (*GetStocksQueryTopOK) SetPayload ¶
func (o *GetStocksQueryTopOK) SetPayload(payload []*models.NewsResponse)
SetPayload sets the payload to the get stocks query top o k response
func (*GetStocksQueryTopOK) WithPayload ¶
func (o *GetStocksQueryTopOK) WithPayload(payload []*models.NewsResponse) *GetStocksQueryTopOK
WithPayload adds the payload to the get stocks query top o k response
func (*GetStocksQueryTopOK) WriteResponse ¶
func (o *GetStocksQueryTopOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetStocksQueryTopParams ¶
GetStocksQueryTopParams contains all the bound params for the get stocks query top operation typically these are obtained from a http.Request
swagger:parameters GetStocksQueryTop
func NewGetStocksQueryTopParams ¶
func NewGetStocksQueryTopParams() GetStocksQueryTopParams
NewGetStocksQueryTopParams creates a new GetStocksQueryTopParams object no default values defined in spec.
func (*GetStocksQueryTopParams) BindRequest ¶
func (o *GetStocksQueryTopParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetStocksQueryTopParams() beforehand.
type GetStocksQueryTopURL ¶
type GetStocksQueryTopURL struct {
// contains filtered or unexported fields
}
GetStocksQueryTopURL generates an URL for the get stocks query top operation
func (*GetStocksQueryTopURL) Build ¶
func (o *GetStocksQueryTopURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetStocksQueryTopURL) BuildFull ¶
func (o *GetStocksQueryTopURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetStocksQueryTopURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetStocksQueryTopURL) SetBasePath ¶
func (o *GetStocksQueryTopURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetStocksQueryTopURL) String ¶
func (o *GetStocksQueryTopURL) String() string
String returns the string representation of the path with query string
func (*GetStocksQueryTopURL) StringFull ¶
func (o *GetStocksQueryTopURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetStocksQueryTopURL) WithBasePath ¶
func (o *GetStocksQueryTopURL) WithBasePath(bp string) *GetStocksQueryTopURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string