Documentation ¶
Index ¶
- Variables
- func ConnectToSql()
- func DisconnectFromSql()
- func GetSetting()
- func Init()
- func InitWindow()
- func Ipv4Validator() fyne.StringValidator
- func LoadResources()
- func MigrateDb()
- func PortValidator() fyne.StringValidator
- func RandStringBytes(n int) []byte
- func SendMessageTo(secret []byte, uuid string, userUuid string, m string, ip string, port string, ...) error
- func SendNotification(title, content string)
- func ShowError(e error)
- func StoreSetting()
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 InitWindow ¶
func InitWindow()
func Ipv4Validator ¶
func Ipv4Validator() fyne.StringValidator
func LoadResources ¶
func LoadResources()
func PortValidator ¶
func PortValidator() fyne.StringValidator
func RandStringBytes ¶
func SendMessageTo ¶
func SendNotification ¶
func SendNotification(title, content string)
func StoreSetting ¶
func StoreSetting()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.