Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recommendation ¶
type Recommendation struct { *recommenderpb.Recommendation Resource string }
Recommendation model
func (*Recommendation) GetRecommendationCost ¶ added in v1.1.0
func (i *Recommendation) GetRecommendationCost() float64
GetRecommendationCost returns the cost
func (*Recommendation) GetRecommendationResource ¶ added in v1.1.0
func (i *Recommendation) GetRecommendationResource() string
GetRecommendationResource returns the resource type
type Recommendations ¶
type Recommendations []*Recommendation
Recommendations model
func (Recommendations) GetRecommendationsCost ¶ added in v1.1.0
func (i Recommendations) GetRecommendationsCost() float64
GetRecommendationsCost returns sum cost of Recommendations
func (Recommendations) GetRecommendationsCount ¶ added in v1.1.0
func (i Recommendations) GetRecommendationsCount() int
GetRecommendationsCount returns length of Recommendation
Click to show internal directories.
Click to hide internal directories.