Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for unixtime (0.22 sec)

  1. tests/serializer_test.go

    	JobInfo                Job                    `gorm:"type:bytes;serializer:gob"`
    	CreatedTime            int64                  `gorm:"serializer:unixtime;type:datetime"` // store time in db, use int as field type
    	UpdatedTime            *int64                 `gorm:"serializer:unixtime;type:datetime"` // store time in db, use int as field type
    	CustomSerializerString string                 `gorm:"serializer:custom"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 21 14:09:38 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  2. schema/serializer.go

    	if ok {
    		serializer, ok = v.(SerializerInterface)
    	}
    	return serializer, ok
    }
    
    func init() {
    	RegisterSerializer("json", JSONSerializer{})
    	RegisterSerializer("unixtime", UnixSecondSerializer{})
    	RegisterSerializer("gob", GobSerializer{})
    }
    
    // Serializer field value serializer
    type serializer struct {
    	Field           *Field
    	Serializer      SerializerInterface
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 08:28:46 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. internal/bucket/bandwidth/measurement.go

    }
    
    // newBucketMeasurement creates a new instance of the measurement with the initial start time.
    func newBucketMeasurement(initTime time.Time) *bucketMeasurement {
    	return &bucketMeasurement{
    		startTime: initTime,
    	}
    }
    
    // incrementBytes add bytes reported for a bucket.
    func (m *bucketMeasurement) incrementBytes(bytes uint64) {
    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
Back to top