Scanyonero/server-websocket-packet.go
David Vogel 853a1bb58d Rework into FTP scanning server
- Rename to Scanyonero
- Add FTP server that ingests TIFF, PNG, JPEG or PDF files
- Add web interface to check and modify ingested files
- Rework how ocrmypdf is invoked

Basics are working, but the program is not in a usable state.
2025-05-14 12:08:38 +02:00

13 lines
365 B
Go

package main
// ServerWebsocketPacket represents a websocket packet.
type ServerWebsocketPacket interface {
Type() string
}
var serverWebsocketPacketRegistry map[string]ServerWebsocketPacket = map[string]ServerWebsocketPacket{}
func ServerWebsocketPacketRegister(prototype ServerWebsocketPacket) {
serverWebsocketPacketRegistry[prototype.Type()] = prototype
}