Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDocIndex = "letitgo-property"
DefaultDocIndex to store property infos
View Source
const DefaultDocMapping = `` /* 714-byte string literal not displayed */
DefaultDocMapping to define the mapping
View Source
const DefaultIndex = "letitgo"
DefaultIndex of elastic
View Source
const DefaultMapping = `` /* 214-byte string literal not displayed */
DefaultMapping for DefaultIndex
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doc ¶
Doc is a set of groups
func (*Doc) CreateRecords ¶
CreateRecords create records of properties
type Group ¶
type Group struct { ID string `json:"id"` Key string `json:"key"` Name string `json:"name"` ParentKey string `json:"parentKey"` Properties []*Property `json:"properties"` }
Group some property together
type Node ¶
type Node struct { GID string `json:"gid"` ID string `json:"id"` CIDs []string `json:"cids"` Clen int32 `json:"clen"` Groupk string `json:"groupk"` Kvs map[string]interface{} `json:"kvs"` }
Node of a n-tree
type Origin ¶
type Origin struct { DiseaseID int `json:"diseaseId"` HospitalID int `json:"hospitalId"` DeptID int `json:"deptId"` SourceCode string `json:"sourceCode"` SourceID string `json:"sourceId"` Docs map[string][]map[string]interface{} `json:"docs"` }
Origin disease info
func (*Origin) ParseNodes ¶
ParseNodes parse the Origin to nodes
Click to show internal directories.
Click to hide internal directories.