Documentation ¶
Index ¶
- func GetDASMaps(entry interface{}) []mongo.DASRecord
- func GetFloat(dmap mongo.DASRecord, key string) float64
- func GetInt(dmap mongo.DASRecord, key string) int
- func GetNotation(nmap mongo.DASRecord) (string, string, string)
- func GetString(dmap mongo.DASRecord, key string) string
- func MapInList(a mongo.DASRecord, list []mongo.DASRecord) bool
- type DASKeysMap
- type DASMaps
- func (m *DASMaps) AssignServices(services []string)
- func (m *DASMaps) ChangeUrl(old, pat string)
- func (m *DASMaps) DASKeys() []string
- func (m *DASMaps) DASKeysMaps() []DASKeysMap
- func (m *DASMaps) DBSInstance() string
- func (m *DASMaps) FindApiRecord(system, urn string) mongo.DASRecord
- func (m *DASMaps) FindNotations(system string) []mongo.DASRecord
- func (m *DASMaps) FindPresentation(daskey string) []mongo.DASRecord
- func (m *DASMaps) FindServices(dasquery dasql.DASQuery) []mongo.DASRecord
- func (m *DASMaps) GetUrl(s string) string
- func (m *DASMaps) LoadMaps(dbname, dbcoll string)
- func (m *DASMaps) LoadMapsFromFile()
- func (m *DASMaps) Maps() []mongo.DASRecord
- func (m *DASMaps) NotationMaps() []mongo.DASRecord
- func (m *DASMaps) PresentationMap() mongo.DASRecord
- func (m *DASMaps) ReadMapFile(fname string)
- func (m *DASMaps) Services() []string
- func (m *DASMaps) SystemApis() map[string][]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDASMaps ¶
GetDASMaps returns das maps for given entry
func GetNotation ¶
GetNotation provides values from notation map
Types ¶
type DASKeysMap ¶
DASKeysMap keesp track of das keys and their attributes
type DASMaps ¶
type DASMaps struct {
// contains filtered or unexported fields
}
DASMaps structure holds all information about DAS records
func (*DASMaps) AssignServices ¶
AssignServices assigns given services to dasmaps
func (*DASMaps) DASKeysMaps ¶
func (m *DASMaps) DASKeysMaps() []DASKeysMap
DASKeysMaps provides presentation map of DAS maps
func (*DASMaps) DBSInstance ¶
helper function to get DBS instance from DBS maps
func (*DASMaps) FindApiRecord ¶
FindApiRecord finds DAS API record
func (*DASMaps) FindNotations ¶
FindNotations provides notation maps for given system
func (*DASMaps) FindPresentation ¶
FindPresentation returns presentations for given das key
func (*DASMaps) FindServices ¶
FindServices look-up DAS services for given set fields and spec pair, return DAS maps associated with found services
func (*DASMaps) LoadMapsFromFile ¶
func (m *DASMaps) LoadMapsFromFile()
LoadMapsFromFile loads DAS maps from github or local file
func (*DASMaps) NotationMaps ¶
NotationMaps provides notation maps
func (*DASMaps) PresentationMap ¶
PresentationMap provides presentation map of DAS maps
func (*DASMaps) ReadMapFile ¶
ReadMapFile reads given map file
func (*DASMaps) SystemApis ¶
SystemApis provides map of DAS system and their apis