notices

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package notices is the board's notices, shared by every page and the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changed

type Changed struct{}

Changed is broadcast to every board when the notices change.

type Form

type Form struct {
	Text string `form:"text" json:"text"`
}

type Notice

type Notice struct {
	ID   int    `json:"id"`
	By   string `json:"by"`
	Text string `json:"text"`
}

type Notices

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

Notices are the board's: a service, registered in main.

func New

func New() *Notices

func (*Notices) Add

func (n *Notices) Add(by, text string) Notice

func (*Notices) All

func (n *Notices) All() []Notice

func (*Notices) Clear

func (n *Notices) Clear()

Jump to

Keyboard shortcuts

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