package
0.0.0-20230623171840-436d2007a9fd
Repository: https://github.com/dropbox/godropbox.git
Documentation: pkg.go.dev

# Functions

This constructs a raw binlog event and returns its payload.
This returns true if the error returned by the event parser is retryable.
This returns a field descriptor for FieldType_BIT (i.e., Field_bit_as_char).
This returns a field descriptor for FieldType_BLOB (i.e., Field_blob).
No description provided by the author
This returns a field descriptor for FieldType_DATETIME2 (i.e., Field_datetimef).
This returns a fields descriptor for FieldType_DATETIME (i.e., Field_datetime).
This returns a field descriptor for FieldType_DECIMAL (i.e., Field_decimal).
This returns a field descriptor for FieldType_DOUBLE (i.e., Field_double).
This returns a field descriptor for FieldType_FLOAT (i.e., Field_float).
This returns a field descriptor for FieldType_INT24 (i.e., Field_medium).
This returns an EventReader which read events from a single (bin / relay) log file, with appropriate parser applied on each event.
This returns an EventReader which read and parses events from a (bin /relay) log stream composed of multiple log files.
No description provided by the author
This returns a field descriptor for FieldType_LONG (i.e., Field_long).
This returns a field descriptor for FieldType_LONGLONG (i.e., Field_longlong).
No description provided by the author
There may be more files over time, so the MockFileFetcher is used instead of a static slice of *MockLogFile.
This returns a field descriptor for FieldType_NEWDECIMAL (i.e., Field_newdecimal).
NewNoOpV4EventParser returns are parser which does nothing (except setting the fixed length data size when used in conjunction with ParsedV4EventReader).
This returns a field descriptor for FieldType_NULL (i.e., Field_null).
This returns an EventReader which applies the appropriate parser on each raw v4 event in the stream.
This returns an EventReader which extracts entries from the src event stream and returns the entries as RawV4Event objects.
This returns a field descriptor for FieldType_SHORT (i.e., Field_shart).
No description provided by the author
This returns a field descriptor for FieldType_TIMESTAMP2 (i.e., Field_timestampf).
This returns a fields descriptor for FieldType_TIMESTAMP (i.e., Field_timestamp).
This returns a field descriptor for FieldType_TINY (i.e., Field_tiny).
NewV4EventParserMap returns an initialize V4EventParserMap with all handled event types' parsers registered.
This returns a field descriptor for FieldType_VARCHAR (i.e., Field_varstring).
This returns a field descriptor for FieldType_YEAR (i.e., Field_year).

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Mysql extensions to binary.BigEndian.
Mysql extensions to binary.LittleEndian.

# Structs

BaseRowsEvent is the representation common to all v1/v2 write/update/delete rows events TODO(patrick): figure out what's inside the extra_row_info bytes (so far, my searches lead to dead ends; looks almost like it's not used.) Common to both 5.5 and 5.6: 19 bytes for common v4 event header 6 bytes (uint64) for table id 2 bytes (uint16) for flags V2 rows events specific (5.6 only): 2 bytes (uint16), X, for 2 + the length of variable-sized header X bytes for variable-sized header: (optional) extra info tag: 1 byte for RW_V_EXTRAINFO_TAG (=0) 1 byte (uint8), Y, for extra row info length Y bytes for extra row info data Common to both 5.5 and 5.6: 1 to 9 bytes (net_store_length variable encoded uint64), Z, for total number of columns (XXX: should be same as # of columns in table map event?).
A representation of the v1 / v2 delete rows event.
No description provided by the author
When tailing logs on a mysql box, there's a potential race conditions where the rotate event is written, but a new log file is not created yet.
A representation of the format description event.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockLogFile is thread-safe.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A representation of the query event.
No description provided by the author
A generic v4 Event entry.
A representation of the rotate event.
No description provided by the author
A representation of the rows-query event.
No description provided by the author
A representation of an event generated when mysqld stops.
This expected error can occur when reading from a new log file.
A representation of the table map event.
No description provided by the author
A representation of the v1 / v2 update rows event.
No description provided by the author
A single update row's used columns values.
A representation of the v1 / v2 write rows event.
No description provided by the author
A representation of the xid event.
No description provided by the author

# Interfaces

No description provided by the author
Event is the common interface for all mysql v4 binlog format events.
EventReader is the common reader interface for all mysql binary log event streams.
FieldDescriptor defines the common interface for interpreting all mysql field types.
No description provided by the author
V4EventParser is the common parser interface for all v4 binlog event types.
V4EventParserMap holds a set of V4EventParsers.

# Type aliases

No description provided by the author
No description provided by the author
Assumes that all files returned by successive calls to MockFileFetcher are the same, except perhaps the last MockLogFile may have additional content in a later call, and later calls may return more mock files.
No description provided by the author
A single row's used columns values.