hello

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterSayHello

func RegisterRouterSayHello(router *mux.Router)

RegisterRouterSayHello register with mux

Types

type Hello

type Hello struct {
	Cmd  string `json:"cmd"`
	Text string `json:"text"`
}

Hello JSON message

func (*Hello) SayHello

func (r *Hello) SayHello(rw http.ResponseWriter) error

SayHello send message back whatever received

Jump to

Keyboard shortcuts

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