hub

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(conn *websocket.Conn, id string)

func Send

func Send(channel string, msg Message)

Types

type Message

type Message struct {
	Time  time.Time `json:"time"`
	QType string    `json:"type"`
	Name  string    `json:"name"`
	RR    string    `json:"rr"`
	Ok    bool      `json:"ok"`
}

Jump to

Keyboard shortcuts

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