openreplay/ee/connectors/msgcodec/io.pxd
MauricioGarciaS 91921d622e
fix(connectors): Created module in Cython to speed up message decoding (#1338)
* Updated pg connector

* fix(player): fix first 8 byte checker

* fix(player): fix commit conflict

* Added pylint

* Removed pylint for incompatible license

* change(ui): check for sessions records state

* Patch/api v1.12.0 (#1299)

* fix(chalice): include metadata in sessions exp search

* fix(chalice): fixed sessions exp search wrong col name

* fix(chalice): removed cookies

* fix(chalice): changed base image to support SSO/xmlsec

* fix(chalice): changed Dockerfile to support SSO/xmlsec

* fix(chalice): changed Dockerfile to support SSO/xmlsec

(cherry picked from commit 4b8cf9742c)

* fix(ui): project fallback to recorded variable

* Patch/api v1.12.0 (#1301)

* fix(chalice): changed base image to support SSO/xmlsec

* fix(chalice): fixed exp search null metadata

(cherry picked from commit ab000751d2)

* change(ui): assist no content message styles and icons

* change(ui): revert menu disable

* fix(connector): Added method to save state in s3 for redshift if sigterm arise

* Rewriting python code in cython

* Added pyx module for messages

* Auto create pyx files

* Updated and fixed msgcodec.pyx

* Added new module to connector code

* Updated kafka lib for base image

* cleaned Docker and updated base image version for pandas

* cleaned prints

* Added code to fetch data from db and add it into redshift

* Updated consumer reading method. Async multithreading over sessionId

* Added split for country (Country,State,City)

* Fixed decoding issue for uint

* Created service able to fix data from redshift by reading from db

* Handle when process ended because of lost connection to pg, country set to country value only
2023-06-23 14:49:39 +02:00

21 lines
899 B
Cython

cdef extern from "Python.h":
ctypedef struct PyBytesIO:
pass
cdef PyBytesIO* PyBytesIO_New()
cdef void PyBytesIO_Init(PyBytesIO* self, object buf)
cdef object PyBytesIO_GetValue(PyBytesIO* self)
cdef void PyBytesIO_SetValue(PyBytesIO* self, object buf)
cdef void PyBytesIO_Write(PyBytesIO* self, const char* s, Py_ssize_t size)
cdef void PyBytesIO_WriteObject(PyBytesIO* self, object o)
cdef object PyBytesIO_Read(PyBytesIO* self, Py_ssize_t n)
cdef object PyBytesIO_Readline(PyBytesIO* self, Py_ssize_t n)
cdef object PyBytesIO_Readlines(PyBytesIO* self, Py_ssize_t n)
cdef void PyBytesIO_Seek(PyBytesIO* self, Py_ssize_t pos, int whence)
cdef Py_ssize_t PyBytesIO_Tell(PyBytesIO* self)
cdef void PyBytesIO_Truncate(PyBytesIO* self, Py_ssize_t size)
cdef void PyBytesIO_Flush(PyBytesIO* self)
cdef object PyBytesIO_GetSize(PyBytesIO* self)
cdef void PyBytesIO_Close(PyBytesIO* self)