simplechat

command module
v0.0.0-...-3957a33 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 10 Imported by: 0

README

simplechat - Toy Chat Server with Spam Protection

This is a toy chat server with spam protection.
It is a simple example of how to use the tg-spam library.

All the preparation steps are done in the main.go file, and the actual spam check and spam report are implemented in the web.go file, specifically in the postMessageHandler function.

The application uses a simple in-memory session to authenticate users and stores messages in an SQLite database. The list of users and passwords is set in the main.go file. The app supports dynamic updates and can run with multiple clients that will be synchronized.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package storage provides a simple storage for this toy chat application.
Package storage provides a simple storage for this toy chat application.

Jump to

Keyboard shortcuts

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