Documentation
¶
Index ¶
- Variables
- func NewIndustryService(store stores.IndustryStore) *industryService
- func NewMarketDayService(marketHolidayStore stores.MarketHolidayStore) *marketDayService
- func NewMarketHolidayService(store stores.MarketHolidayStore) *marketHolidayService
- func NewMetricService(store stores.MetricStore) *metricService
- func NewSecurityMetricService(marketDayService MarketDayService, metricService MetricService, ...) *securityMetricService
- func NewSecurityService(marketDayService MarketDayService, securityMetricService SecurityMetricService, ...) *securityService
- func NewSecurityStatService(marketDayService MarketDayService, store stores.SecurityStatStore) *securityStatService
- type ErrResp
- type IndustryService
- type MarketDayFilter
- type MarketDayService
- type MarketHoliday
- type MarketHolidayCreate
- type MarketHolidayFilter
- type MarketHolidayService
- type MarketHolidayUpdate
- type Metric
- type MetricCreate
- type MetricService
- type MetricUpdate
- type Security
- type SecurityCreate
- type SecurityFilter
- type SecurityMetric
- type SecurityMetricService
- type SecurityService
- type SecurityStat
- type SecurityStatCreate
- type SecurityStatFilter
- type SecurityStatService
- type SecurityStatUpdate
- type SecurityUpdate
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewIndustryService ¶
func NewIndustryService(store stores.IndustryStore) *industryService
func NewMarketDayService ¶
func NewMarketDayService(marketHolidayStore stores.MarketHolidayStore) *marketDayService
func NewMarketHolidayService ¶
func NewMarketHolidayService(store stores.MarketHolidayStore) *marketHolidayService
func NewMetricService ¶
func NewMetricService(store stores.MetricStore) *metricService
func NewSecurityMetricService ¶
func NewSecurityMetricService(marketDayService MarketDayService, metricService MetricService, securityStatStore stores.SecurityStatStore) *securityMetricService
func NewSecurityService ¶
func NewSecurityService(marketDayService MarketDayService, securityMetricService SecurityMetricService, metricStore stores.MetricStore, securityStatStore stores.SecurityStatStore, store stores.SecurityStore) *securityService
func NewSecurityStatService ¶
func NewSecurityStatService(marketDayService MarketDayService, store stores.SecurityStatStore) *securityStatService
Types ¶
type ErrResp ¶
func (*ErrResp) StatusCode ¶
type IndustryService ¶
type MarketDayFilter ¶
type MarketDayService ¶
type MarketHoliday ¶
type MarketHolidayCreate ¶
type MarketHolidayFilter ¶
type MarketHolidayService ¶
type MarketHolidayService interface {
Index(ctx *gofr.Context, f *MarketHolidayFilter, page, perPage int) ([]*MarketHoliday, int, error)
Read(ctx *gofr.Context, id int) (*MarketHoliday, error)
Create(ctx *gofr.Context, payload *MarketHolidayCreate) (*MarketHoliday, error)
Patch(ctx *gofr.Context, id int, payload *MarketHolidayUpdate) (*MarketHoliday, error)
Delete(ctx *gofr.Context, id, userID int) error
}
type MarketHolidayUpdate ¶
type MetricCreate ¶
type MetricService ¶
type MetricUpdate ¶
type SecurityCreate ¶
type SecurityFilter ¶
type SecurityMetric ¶
type SecurityMetricService ¶
type SecurityService ¶
type SecurityService interface {
Index(ctx *gofr.Context, f *SecurityFilter, page, perPage int) ([]*Security, int, error)
Read(ctx *gofr.Context, id int) (*Security, error)
Create(ctx *gofr.Context, payload *SecurityCreate) (*Security, error)
Patch(ctx *gofr.Context, id int, payload *SecurityUpdate) (*Security, error)
}
type SecurityStat ¶
type SecurityStatCreate ¶
type SecurityStatFilter ¶
type SecurityStatService ¶
type SecurityStatService interface {
Index(ctx *gofr.Context, f *SecurityStatFilter, page, perPage int) ([]*SecurityStat, int, error)
Read(ctx *gofr.Context, id int) (*SecurityStat, error)
Create(ctx *gofr.Context, payload *SecurityStatCreate) (*SecurityStat, error)
Patch(ctx *gofr.Context, id int, payload *SecurityStatUpdate) (*SecurityStat, error)
}
type SecurityStatUpdate ¶
Click to show internal directories.
Click to hide internal directories.