server

package
v0.0.0-...-3bde8dd Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServer

func GetServer(broker *mq.Broker) http.Handler

Types

type Message

type Message struct {
	Topic string          `json:"topic"`
	Data  json.RawMessage `json:"data,omitempty"`
}

func (Message) Validate

func (msg Message) Validate() error

type PollReq

type PollReq struct {
	Topic      string `json:"topic"`
	Subscriber string `json:"subscriber"`
}

func (PollReq) Validate

func (msg PollReq) Validate() error

type StatusMsg

type StatusMsg struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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