resolute

package
v0.0.0-...-18b333a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandTypeCreateRoom        = "create-room"
	CommandTypeGetRoomOneTimeKey = "room-key-onetime"
	CommandTypeGetRoomForeverKey = "room-key-forever"
	CommandTypeJoinRoomOneTime   = "join-room-onetime"
	CommandTypeJoinRoomForever   = "join-room-forever"
	CommandTypeResetRoomKeys     = "reset-room-keys"

	CommandTypeSendMessage = "send-message"
)

Variables

View Source
var State = rstructs.NewState()

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd string `json="cmd"`
}

func NewCommandFromJSON

func NewCommandFromJSON(d []byte) (*Command, error)

type Server

type Server struct {
	Path    string
	Host    string
	Handler func(http.ResponseWriter, *http.Request)
}

func NewServer

func NewServer(path, host string) *Server

func (*Server) Listen

func (s *Server) Listen(pubPath, privPath string) error

Jump to

Keyboard shortcuts

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