config

package
v0.0.0-...-6ef2821 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Incognito  bool   = false
	SaveRooms  bool   = true
	AppId      string = "chat-app"
	Username   string = "New User"
	UserUuid   string
	Addr, Port string = "0.0.0.0", "56156"

	ChatApp           fyne.App
	DefaultWindowSize fyne.Size = fyne.NewSize(350, 500)
	WindowTitle       string    = "p2p chat app"
	Window            fyne.Window
	IsInForground     bool
	IsNightMode       bool

	CurrentChatRoom *fyne.Container

	DayIcon   *fyne.StaticResource
	NightIcon *fyne.StaticResource
	ChatIcon  *fyne.StaticResource
)

Functions

func ConnectToSql

func ConnectToSql()

func DisconnectFromSql

func DisconnectFromSql()

func GetSetting

func GetSetting()

func Init

func Init()

func InitWindow

func InitWindow()

func Ipv4Validator

func Ipv4Validator() fyne.StringValidator

func LoadResources

func LoadResources()

func MigrateDb

func MigrateDb()

func PortValidator

func PortValidator() fyne.StringValidator

func RandStringBytes

func RandStringBytes(n int) []byte

func SendMessageTo

func SendMessageTo(secret []byte, uuid string, userUuid string, m string, ip string, port string, username string) error

func SendNotification

func SendNotification(title, content string)

func ShowError

func ShowError(e error)

func StoreSetting

func StoreSetting()

Types

This section is empty.

Jump to

Keyboard shortcuts

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