chat

package
v0.0.0-...-a192842 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	Username *string
	Host     *host.Host
	Remote   *config.RemotePeer
}

func NewChat

func NewChat(ctx context.Context, h *host.Host, rp *config.RemotePeer, cfg *config.Config) *Chat

func (*Chat) StreamHandler

func (c *Chat) StreamHandler(s network.Stream)

func (*Chat) WelcomeMessage

func (c *Chat) WelcomeMessage(username *string)

Jump to

Keyboard shortcuts

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