Documentation ¶
Index ¶
- type CacheServ
- func (cs *CacheServ) DeleteHandler(ws *websocket.Conn)
- func (cs *CacheServ) FlushHandler(ws *websocket.Conn)
- func (cs *CacheServ) GetHandler(ws *websocket.Conn)
- func (cs *CacheServ) IsAliveHandler(ws *websocket.Conn)
- func (cs *CacheServ) Serve(port string)
- func (cs *CacheServ) SetHandler(ws *websocket.Conn)
- type CacheServHandlerInt
- type CacheServInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServ ¶
type CacheServ struct { HTTPServer *http.Server CacheServInt CacheServHandlerInt // contains filtered or unexported fields }
CacheServ is the server access struct
func (*CacheServ) DeleteHandler ¶
DeleteHandler pushes the D Article into the serialization channel
func (*CacheServ) FlushHandler ¶
FlushHandler flushes the cache
func (*CacheServ) GetHandler ¶
GetHandler pushes the G Article into the serialization channel
func (*CacheServ) IsAliveHandler ¶
IsAliveHandler can be used to determine whether the cache server is running, without performing a read/write operation.
func (*CacheServ) SetHandler ¶
SetHandler pushes the AU Article into the serialization channel
type CacheServHandlerInt ¶
type CacheServHandlerInt interface { SetHandler(a wscom.Article) error GetHandler(ws *websocket.Conn) DeleteHandler(ws *websocket.Conn) FlushHandler(ws *websocket.Conn) IsAliveHandler(ws *websocket.Conn) }
CacheServHandlerInt outlines the cache server websocket handlers
type CacheServInt ¶
type CacheServInt interface { Serve(port uint, leader uint64) // contains filtered or unexported methods }
CacheServInt outlines the cache server interface
Click to show internal directories.
Click to hide internal directories.