Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldTypeString = message.FieldTypeString FieldTypeFixed = message.FieldTypeFixed FieldTypeUUID = message.FieldTypeUUID FieldTypeInt = message.FieldTypeInt FieldTypeInt32 = message.FieldTypeInt32 FieldTypeInt8 = message.FieldTypeInt8 FieldTypeUint = message.FieldTypeUint FieldTypeUint32 = message.FieldTypeUint32 FieldTypeUint8 = message.FieldTypeUint8 FieldTypeFloat = message.FieldTypeFloat FieldTypeBoolean = message.FieldTypeBoolean FieldTypeIP = message.FieldTypeIP FieldTypeDate = message.FieldTypeDate FieldTypeUnixnano = message.FieldTypeUnixnano FieldTypeArrayInt32 = message.FieldTypeArrayInt32 FieldTypeArrayInt64 = message.FieldTypeArrayInt64 )
Field scalar types enum
Variables ¶
View Source
var EmptyMessage = message.EmptyMessage
Functions ¶
This section is empty.
Types ¶
type MapMessage ¶ added in v0.5.2
type MapMessage = message.MapMessage
type Message ¶
func MessageDecode ¶
MessageDecode from bytes
type Sourcer ¶
type Sourcer interface { // Close extension io.Closer // Subscribe new stream to data processing. // For all subscribed streams sends the same data messages Subscribe(ctx context.Context, streams ...Streamer) error // Start runs observing for data writing into subscribed streams Start(ctx context.Context) error }
Sourcer describes the input stream interface. The source accepts messages from some queue popeline like Kafka, NATS, RabbitMQ and etc and send this data one by one into the stream processor.
type StorageConfig ¶ added in v0.2.1
type StorageConfig struct { Debug bool Connect string Driver string Buffer uint Raw json.RawMessage }
StorageConfig of the storage
func (*StorageConfig) Decode ¶ added in v0.2.1
func (c *StorageConfig) Decode(v any) error
Decode raw data to the target object
func (*StorageConfig) UnmarshalJSON ¶ added in v0.2.1
func (c *StorageConfig) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON data
func (*StorageConfig) Validate ¶ added in v0.2.1
func (c *StorageConfig) Validate() error
Validate config
type Storager ¶
type Storager interface { // Closer extension of interface io.Closer // Stream returns new stream writer for some specific configs Stream(opts ...any) (Streamer, error) }
Storager describe method of interaction with storage. Storage creates new stream interfaces to process data from sources.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.