Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByRequest ¶
func GetByRequest(request *restful.Request, response *restful.Response)
GetByRequest returns hospitality score by request
Types ¶
type CacheScore ¶
CacheScore represents the score on specific cache id
type Hospitality ¶
type Hospitality struct {
SC map[string]CacheScore `json:"score"`
}
Hospitality represents the score of the host
{ "score": { "l3": { "0": 30 "1": 30 } } }
func (*Hospitality) GetByRequest ¶
func (h *Hospitality) GetByRequest(req *Request) error
GetByRequest returns hospitality score by request
func (*Hospitality) GetByRequestMaxMin ¶
func (h *Hospitality) GetByRequestMaxMin(max, min uint32, cacheIDuint *uint32, targetLev string) error
GetByRequestMaxMin constructs Hospitality struct by max and min cache ways
Click to show internal directories.
Click to hide internal directories.