Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCache = errors.New("Unable to handle Cache Request")
Functions ¶
Types ¶
type Cache ¶
type Company ¶
type Company struct { gorm.Model Symbol string `gorm:"unique"` // Name of the company CompanyName string // Number of employees Employees uint Exchange string Industry string Website string Description string CEO string // Name of the security SecurityName string // refers to the common issue type of the stock. // ad – American Depository Receipt (ADR’s) // re – Real Estate Investment Trust (REIT’s) // ce – Closed end fund (Stock and Bond Fund) // si – Secondary Issue // lp – Limited Partnerships // cs – Common Stock // et – Exchange Traded Fund (ETF) // wt – Warrant // rt – Right // (blank) – Not Available, i.e., Note, or (non-filing) Closed Ended Funds // ut - Unit // temp - Temporary IssueType string Sector string // Primary SIC Code for the symbol (if available) PrimarySicCode uint //an array of strings used to classify the company. // Tags []Tag `gorm:"many2many:company_tags;"` // street address of the company if available Address string //street address of the company if available Address2 string // state of the company if available State string // city of the company if available City string // zip of the company if available Zip string // country of the company if available Country string // phone number of the company if available Phone string }
type Endpoints ¶
func NewEndpoints ¶
type GetCompanyBySymbolRequest ¶
type GetCompanyBySymbolRequest struct {
Symbol string `json:"symbol"`
}
type GetCompanyBySymbolResponse ¶
type GetCompanyBySymbolResponse struct {
Company Company `json:"company"`
}
type LoggingMiddleware ¶
func (LoggingMiddleware) GetCompanyBySymbol ¶
type MetricsMiddleware ¶
type MetricsMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram Next Service }
func (MetricsMiddleware) GetCompanyBySymbol ¶
Click to show internal directories.
Click to hide internal directories.