This commit is contained in:
2025-09-14 10:16:40 +02:00
parent e39ad90ae5
commit af78e5375a
32 changed files with 307 additions and 124 deletions

View File

@@ -20,6 +20,11 @@ pub mut:
socket_path string = '/tmp/heromodels'
}
pub fn start_unix_server(handler Handler, params UNIXServerParams) ! {
mut server := new_unix_server(handler, params)!
server.start()!
}
pub fn new_unix_server(handler Handler, params UNIXServerParams) !&UNIXServer {
// Remove existing socket file if it exists
if os.exists(params.socket_path) {