Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Cat = "Cat" Mts = "Mts" Slab = "Slab" )
var RedisClient *redis.Client
var SlabTempNQD []int
var SlabTempSize []int
Functions ¶
func CatToJson ¶
func CatToJson(p interface{}) string
ToJson marshals CatPageArray data into JSON format
func SlabToJson ¶
func SlabToJson(p interface{}) string
SlabToJson marshals SlabPageArray data into JSON format
Types ¶
type CatPage ¶
type CatPage struct { AIName string `json:"AIName"` CatVal []CatValArray `json:"CatVal"` }
CatPage exports schema for data/cat.json
func AddtoCatPageArray ¶
AddtoCatPageArray Appends a new CatPage 'p' to the specified target CatPageArray 'pa'
func ConvtoCatPage ¶
ConvtoCatPage converts a set of data vars into a CatPage struct variable
func GetCatPages ¶
func GetCatPages() []CatPage
GetCatPages returns a converted CatPage Array persistent to the mts.json
type CatValArray ¶
CatValArray exports the sub-JSON document for CatPage
type Page ¶
type Page struct { AIName string `json:"AIName"` IntName string `json:"IntName"` ArtiMts float64 `json:"ArtiMts"` HumanMts float64 `json:"HumanMts"` }
Page exports schema for mts.json
func AddtoPageArray ¶
AddtoPageArray Appends a new page 'p' to the specified target PageArray 'pa'
func ConvtoPage ¶
ConvtoPage converts a set of data vars into a Page struct variable
type SlabPage ¶
type SlabPage struct { SlabName string `json:"SlabName"` NQDropped int `json:"NQDropped"` AvgSlabSize int `json:"AvgSlabSize"` NSlabExposed int `json:"NSlabExposed"` }
SlabPage exports schema for reportcard/mts.json
func AddtoSlabPageArray ¶
AddtoSlabPageArray Appends a new Slabpage 'p' to the specified target SlabPageArray 'pa'
func ConvtoSlabPage ¶
ConvtoSlabPage configures the parameters of SlabPage using the ArtiQSA
func GetSlabPages ¶
func GetSlabPages() []SlabPage
GetSlabPages returns a converted SlabPage Array persistent to the mts.json