wssrv

package
v0.0.0-...-1de58c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

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

func (cs *CacheServ) DeleteHandler(ws *websocket.Conn)

DeleteHandler pushes the D Article into the serialization channel

func (*CacheServ) FlushHandler

func (cs *CacheServ) FlushHandler(ws *websocket.Conn)

FlushHandler flushes the cache

func (*CacheServ) GetHandler

func (cs *CacheServ) GetHandler(ws *websocket.Conn)

GetHandler pushes the G Article into the serialization channel

func (*CacheServ) IsAliveHandler

func (cs *CacheServ) IsAliveHandler(ws *websocket.Conn)

IsAliveHandler can be used to determine whether the cache server is running, without performing a read/write operation.

func (*CacheServ) Serve

func (cs *CacheServ) Serve(port string)

Serve starts the cache server

func (*CacheServ) SetHandler

func (cs *CacheServ) SetHandler(ws *websocket.Conn)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL