mirror of
https://github.com/deavmi/nostril
synced 2024-09-20 05:23:00 +02:00
Connection
- This stub class is to represent a new connection from a client Server - This stub class is to represent a server which holds connections BackingStore - Abstract type representing the storage for saving and retrieving events
This commit is contained in:
parent
3fc2c491a7
commit
55db5d0bea
14
source/conection.d
Normal file
14
source/conection.d
Normal file
@ -0,0 +1,14 @@
|
||||
module nostril.conection;
|
||||
|
||||
import vibe.vibe : WebSocket;
|
||||
|
||||
public class Connection
|
||||
{
|
||||
/* Client socket */
|
||||
private WebSocket ws;
|
||||
|
||||
this(WebSocket ws)
|
||||
{
|
||||
this.ws = ws;
|
||||
}
|
||||
}
|
36
source/server.d
Normal file
36
source/server.d
Normal file
@ -0,0 +1,36 @@
|
||||
module nostril.server;
|
||||
|
||||
import vibe.vibe : URLRouter;
|
||||
|
||||
public class Server
|
||||
{
|
||||
private URLRouter router;
|
||||
|
||||
private this()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static Server createServer()
|
||||
{
|
||||
Server newServer;
|
||||
|
||||
|
||||
|
||||
return newServer;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* BackingStore
|
||||
*
|
||||
* Represents the backing storage where
|
||||
* events are to be read from and written
|
||||
* to
|
||||
*/
|
||||
public abstract class BackingStore
|
||||
{
|
||||
// TODO: Add a queue here
|
||||
}
|
Loading…
Reference in New Issue
Block a user