Example #1
0
func NewRecord() (this *Record) {
	this = new(Record)
	this.Id = u.TimeUUID()
	this.TodayAndNow = time.Now().In(time.Local)
	this.Pid = syscall.Getpid()
	return this
}
Example #2
0
// Добавление в пул нового backend
func (self *Backends) AddBackend(item *Backend) (ret *u.UUID, err error) {
	ret = new(u.UUID)
	*ret = u.TimeUUID()

	if item == nil {
		err = ErrBackendIsNull
		return
	}
	self.PoolIndex[*ret] = self.Pool.PushBack(item)
	return
}
Example #3
0
func TestRecordGetFormatedElement(t *testing.T) {
	var obj *Record = new(Record)
	//	var resp string
	//	var err error
	//	var matches [][]int

	makeDictionary(obj)
	obj.Id = uuid.TimeUUID()

	//	matches, err = CheckFormat(TestTpl1)
	//	resp = obj.getFormatedElement(templateNames[`id`], ``)

	//debug.Dumper(matches, err, resp)

}
Example #4
0
// New log object
func NewLog() Log {
	return newLogEssence(u.TimeUUID()).Interface
}