messages

package
v0.0.0-...-f6c02ae Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

View Source
var ActiveMessages = RunNewMessages(tickerWaitMS)

Functions

This section is empty.

Types

type Message

type Message struct {
	Type    string
	Content string

	Expire time.Time
	// contains filtered or unexported fields
}

func (*Message) Expired

func (m *Message) Expired() bool

func (*Message) Remove

func (m *Message) Remove()

type Messages

type Messages struct {
	Active          []*Message
	StopMessageLoop chan struct{}
	// contains filtered or unexported fields
}

func NewMessages

func NewMessages() *Messages

func RunNewMessages

func RunNewMessages(tickerTimeMS int) *Messages

func (*Messages) Delete

func (m *Messages) Delete(msg *Message)

func (*Messages) New

func (m *Messages) New(t string, c string, expireMS int, widthPX int) *Message

func (*Messages) NewError

func (m *Messages) NewError(c string, expire int, widthPX int) *Message

func (*Messages) NewInfo

func (m *Messages) NewInfo(c string, expire int, widthPX int) *Message

func (*Messages) NewSuccess

func (m *Messages) NewSuccess(c string, expire int, widthPX int) *Message

func (*Messages) NewWarning

func (m *Messages) NewWarning(c string, expire int, widthPX int) *Message

func (*Messages) Stop

func (m *Messages) Stop()

Jump to

Keyboard shortcuts

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