server

package
v0.0.0-...-1636c25 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RespServer

type RespServer struct {
	PubSub *redcon.PubSub
	// contains filtered or unexported fields
}

func NewRespServer

func NewRespServer(storage store.Store, addr string) RespServer

func (RespServer) AddUser

func (r RespServer) AddUser(user store.User)

func (RespServer) Publish

func (r RespServer) Publish(channelName string, response []byte)

func (RespServer) RemoveUser

func (r RespServer) RemoveUser(user store.User)

type Server

type Server interface {
	Publish(channelName string, response []byte)
	AddUser(user store.User)
	RemoveUser(user store.User)
}

Jump to

Keyboard shortcuts

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