Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. schema/field.go

    	ByteReflectType    = reflect.TypeOf(uint8(0))
    )
    
    type (
    	// DataType GORM data type
    	DataType string
    	// TimeType GORM time type
    	TimeType int64
    )
    
    // GORM time types
    const (
    	UnixTime        TimeType = 1
    	UnixSecond      TimeType = 2
    	UnixMillisecond TimeType = 3
    	UnixNanosecond  TimeType = 4
    )
    
    // GORM fields types
    const (
    	Bool   DataType = "bool"
    	Int    DataType = "int"
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  3. cmd/bucket-replication-metrics.go

    }
    
    // newRateMeasurement creates a new instance of the measurement with the initial start time.
    func newRateMeasurement(initTime time.Time) *rateMeasurement {
    	return &rateMeasurement{
    		startTime: initTime,
    	}
    }
    
    // incrementBytes add bytes reported for a bucket/target.
    func (m *rateMeasurement) incrementBytes(bytes uint64) {
    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top