Ejemplo n.º 1
0
func PushKeyValTSDS(key string, val string,
	year int, month int, day int,
	hour int, min int, sec int) bool {
	key_time := time.Date(year, time.Month(month),
		day, hour, min, sec, 0, time.UTC)
	levigoTSDS.PushTSDS(key, val, key_time, db)
	return true
}
Ejemplo n.º 2
0
/* Push a key namespace-d with goltime.Timestamp  */
func PushKeyValTSDS(packet Packet) bool {
	status := true
	_time := packet.TimeDot.Time()
	for _key, _val := range packet.HashMap {
		_val = strings.Replace(_val, "\n", " ", -1)
		status = status && levigoTSDS.PushTSDS(_key, _val, _time, db)
	}
	return status
}
Ejemplo n.º 3
0
/* Push a key namespace-d with goltime.Timestamp  */
func PushKeyValTSDS(key string, val string, timestamp goltime.Timestamp) bool {
	if levigoTSDS.PushTSDS(key, val, timestamp.Time(), db) == "" {
		return false
	}
	return true
}