Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldTypeString = "string" FieldTypeInt64 = "int64" FieldTypeFloat64 = "float64" FieldTypeBool = "bool" FieldTypeRecord = "record" )
Variables ¶
View Source
var ( ErrorTooManyValues = errors.New("row has more values than schema fields") ErrorInvalidFieldType = errors.New("row value has invalid field type") ErrorUnsupportedFieldType = errors.New("unsupported field type") ErrorEmptyTableName = errors.New("Table.Name must not be empty") ErrorEmptyTopicName = errors.New("Table.Topic must not be empty") )
Functions ¶
This section is empty.
Types ¶
type FieldSchema ¶
type FieldSchema []Field
func (FieldSchema) Validate ¶
func (s FieldSchema) Validate(row Row) error
func (FieldSchema) ValidateMessage ¶
func (s FieldSchema) ValidateMessage(msg api.Message) error
func (FieldSchema) ValidateRows ¶
func (s FieldSchema) ValidateRows(rows ...Row) error
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is the defaulr message type used to create new concrete payloads and implements the api.Message interface.
func CopyMessage ¶
func NewMessage ¶
func (*Message) MustEncode ¶
type Schema ¶
type Schema struct { Name string `json:"name,omitempty"` Topic string `json:"topic,omitempty"` Schema FieldSchema `json:"schema,omitempty"` // contains filtered or unexported fields }
Schema idenfies and fully defines a kstore table.
type TableTopic ¶
Click to show internal directories.
Click to hide internal directories.