const ( NullEmailAddress = EmailAddress("") AdminEntitlementsEmailAddress = EmailAddress("admin-entitlements") StarEmailAddress = EmailAddress("*") )
const ( FqnEmpty = Fqn("") StarFqn = Fqn("*") )
const ( BackfillTtMin = BackfillTt(int64(1)) )
const ( Infinity = math.MaxInt64 )
const ( NullTimesliceId = TimesliceId("") )
const ( StarClientCommonName = ClientCommonName("*") )
const ( TtInf = Tt(Infinity) )
const ( VtInf = Vt(Infinity) )
func FirstN(s string, n int) string
func LoadTLSCredentialsForFiles(certFile string, keyFile string, caFile string) (credentials.TransportCredentials, error)
func MutexLocked(m *sync.Mutex) bool
type BackfillTt int64
func BackfillTtOf(t time.Time) BackfillTt
func BackfillTtOfTt(tt Tt) BackfillTt
func (btt BackfillTt) Greater(tt Tt) bool
type BatchSize int32
type Blob struct { Blob []byte // contains filtered or unexported fields }
func NewBlob(b []byte) *Blob
func NewCompressedBlob(b []byte, sizeUncompressed int64) *Blob
func (b *Blob) Compressed() bool
func (b *Blob) Equal(b2 *Blob) bool
func (b *Blob) SizeUncompressed() int64
type BoolIndexValue bool
type ClientCommonName string
func LoadClientCommonNameForFiles(certFile string, keyFile string) (ClientCommonName, error)
type EmailAddress string
type Event interface { Blob() (EventBlob, error) EventId() EventId Fqn() Fqn SetEventId(EventId) error SetTt(Tt) error Tt() Tt }
type EventBlob []byte
type EventId string
type Float32IndexValue float32
type Float64IndexValue float64
type Fqn string
type IndexKey string
type Int32IndexValue int32
type Int64IndexValue int64
type Lsqt Tt
func (lsqt Lsqt) Equal(lsqt2 Lsqt) bool
func (lsqt Lsqt) GreaterEqual(tt Tt) bool
func (lsqt Lsqt) GreaterLsqt(lsqt2 Lsqt) bool
func (lsqt Lsqt) Increment() Lsqt
func (lsqt Lsqt) Less(tt Tt) bool
func (lsqt Lsqt) LessLsqt(lsqt2 Lsqt) bool
func (lsqt Lsqt) Tt() Tt
func (lsqt Lsqt) Vt() Vt
type ObjectId string
func (oid ObjectId) String() string
func (oid ObjectId) Valid() bool
Valid returns true if the ObjectId is valid (not an empty string) and false otherwise.
type Percentile float64
type ProjectedFieldKey string
type ProjectedFieldValue struct { Int64 *int64 Int32 *int32 Float64 *float64 Float32 *float32 }
func NewFloat32ProjectedFieldValue(f float32) *ProjectedFieldValue
func NewFloat64ProjectedFieldValue(f float64) *ProjectedFieldValue
func NewInt32ProjectedFieldValue(i int32) *ProjectedFieldValue
func NewInt64ProjectedFieldValue(i int64) *ProjectedFieldValue
type StringIndexValue string
type TemporalCoordinates struct { Tt Tt Vt Vt }
func NewTemporalCoordinates(tt Tt, vt Vt) *TemporalCoordinates
type TimesliceId string
func (tsId TimesliceId) Greater(tsId2 TimesliceId) bool
func (tsId TimesliceId) Less(tsId2 TimesliceId) bool
type TimestampIndexValue int64
func TimeToTimestampIndexValue(t *time.Time) TimestampIndexValue
type Tt int64
func TtOf(t time.Time) Tt
func (tt Tt) Equal(tt2 Tt) bool
func (tt Tt) Greater(tt2 Tt) bool
func (tt Tt) GreaterEqual(tt2 Tt) bool
func (tt Tt) Less(tt2 Tt) bool
func (tt Tt) LessEqual(tt2 Tt) bool
func (tt Tt) String() string
type Vt int64
func VtOf(t time.Time) Vt
func (vt Vt) Equal(vt2 Vt) bool
func (vt Vt) Greater(vt2 Vt) bool
func (vt Vt) GreaterEqual(vt2 Vt) bool
func (vt Vt) Less(vt2 Vt) bool
func (vt Vt) LessEqual(vt2 Vt) bool
func (vt Vt) String() string
Name | Synopsis |
---|---|
.. | |
entitlements | Package entitlements provides methods for adding and modifying entitlements to data stored in TwiceDB. |
object_registry | Package object_registry defines the ObjectRegistry that allows the TwiceDB client to deserialize objects into the correct classes. |