app

package
v0.0.0-...-7cbb0b1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ChatPrefix is the storage prefix for the chat.
	ChatPrefix = "/chat"
	// RoomsPrefix is the prefix for chat rooms.
	RoomsPrefix = ChatPrefix + "/rooms"
)
View Source
const (
	// AppID is the application ID.
	AppID = "com.webmeshproj.app"
)

Variables

This section is empty.

Functions

func MembersPath

func MembersPath(roomName string) string

MembersPath returns the storage path for a room's members.

func MessagesPath

func MessagesPath(roomName string) string

MessagesPath returns the storage path for a room's messages.

func NewMessageKey

func NewMessageKey(roomName string, from string) string

NewMessageKey returns a new message key for publishing to a room.

func RoomPath

func RoomPath(roomName string) string

RoomPath returns the storage path for a room.

Types

type App

type App struct {
	// App is the fyne application.
	fyne.App
	// contains filtered or unexported fields
}

App is the application.

func New

func New(socketAddr string) *App

New sets up and returns a new application.

Jump to

Keyboard shortcuts

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