message

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloReply

type HelloReply struct {
	Answer string
}

HelloReply is the reply of HelloRequest to clients

type HelloRequest

type HelloRequest struct {
	Who      string
	Question string
}

HelloRequest is the request from clients

func (HelloRequest) Handle

func (msg HelloRequest) Handle(stream as.ContextStream) (reply interface{})

Handle handles msg.

Jump to

Keyboard shortcuts

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