Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvBoolToBytes ¶
ConvBoolToBytes convert the boolean value to a byte array
Types ¶
type Event ¶
type Event interface { // Tenant The optional tenant associated with the event Tenant() string // Type The optional type associated with the event Type() string // Timestamp The optional timestamp, will use current time if not defined Timestamp() time.Time // Fields The list of fields to be indexed for the event Fields() []*Field }
Event The event to be stored
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field The field, defining a name/value associated with an event
type FieldType ¶
type FieldType struct { // Name The name of the field type Name string // VariableLength Whether the field is variable length VariableLength bool // FixedLength If fixed length field, otherwise -1 FixedLength int }
FieldType Information about the type of a field
var ( // StringType represents a string StringType FieldType = FieldType{ Name: "string", VariableLength: true, FixedLength: -1, } // BooleanType represents a boolean BooleanType FieldType = FieldType{ Name: "bool", VariableLength: false, FixedLength: 1, } // Int64Type represents a int64 Int64Type FieldType = FieldType{ Name: "int64", VariableLength: false, FixedLength: 8, } // Float64Type represents a float64 Float64Type FieldType = FieldType{ Name: "float64", VariableLength: false, FixedLength: 8, } // BinaryType represents a byte[] BinaryType FieldType = FieldType{ Name: "binary", VariableLength: true, FixedLength: -1, } )
Click to show internal directories.
Click to hide internal directories.