message

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

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handle message

func NewHandler

NewHandler return handler

func (*Handler) OnMessage

func (h *Handler) OnMessage(param *MessageInterface) (string, error)

OnMessage send message to room mate

type MessageInterface

type MessageInterface struct {
	Dest    string `json:"dest"`
	Type    string `json:"type"`
	Message string `json:"message"`
}

MessageInterface api parameter interface

Jump to

Keyboard shortcuts

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