mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
62623b7123
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
14 lines
259 B
Cython
14 lines
259 B
Cython
cdef enum CommandType:
|
|
INFERENCE = 1
|
|
LOAD = 2
|
|
GET_USER = 3
|
|
|
|
cdef class RemoteCommand:
|
|
cdef public bytes client_id
|
|
cdef CommandType command_type
|
|
cdef str filename
|
|
cdef bytes data
|
|
|
|
@staticmethod
|
|
cdef from_msgpack(bytes data)
|