panes

package
v0.0.0-...-1b212d2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const MyDurable string = "snatsdurable"
View Source
const MySecret string = "abd&1*~#^2^#s0^=)^^7%c34" // must be 24 characters
View Source
const PasswordDefault = "123456" // default password shipped with app
View Source
const QueueCheckInterval = 30 // check interval in seconds
View Source
const Version = "snats-beta.1"

version

Variables

View Source
var Alias string // name the queue user
View Source
var Caroot = ""
View Source
var Clientcert = ""
View Source
var Clientkey = ""
View Source
var ErrorMessage = "None"
View Source
var IdUUID string // unique message id
View Source
var LoggedOn bool = false
View Source
var Msgmaxage string // msg age in hours to keep
View Source
var MyApp fyne.App
View Source
var MyAppDup fyne.App
View Source
var MyBytes = []byte{35, 46, 57, 24, 85, 35, 24, 74, 87, 35, 88, 98, 66, 32, 14, 05} // must be 16 bytes

* The following fields need to be modified for you production * Environment to provide maximum security * * These fields are meant to be distributed at compile time and * editable in the gui. *

View Source
var MyLangs = map[string]string{}/* 204 elements not displayed */

eng esp cmn

View Source
var MyMap = make(map[string]int)
View Source
var MyPanes = map[string]MyPane{}
View Source
var MyPanesIndex = map[string][]string{}
View Source
var NatsMessages []MessageStore

messages from nats

View Source
var NodeUUID string // nodeuuid created on logon
View Source
var Password string // encrypt file password
View Source
var PasswordMinimumSize string // set minimum password size
View Source
var PasswordMustContainLetter string // password must contain letter
View Source
var PasswordMustContainNumber string // password must contain number
View Source
var PasswordMustContainSpecial string // password must contain special character
View Source
var PasswordValid bool = false
View Source
var Passwordhash string // hash value of password
View Source
var PreferedLanguage string // language string
View Source
var Queue string // server message queue
View Source
var Queuepassword string // server message queue password
View Source
var Server string // server url

Server tab

Functions

func DataStore

func DataStore(myfile string) fyne.URI

func Decode

func Decode(s string) []byte

func Decrypt

func Decrypt(text string, MySecret string) (string, error)

func Encode

func Encode(b []byte) string

func Encrypt

func Encrypt(text string, MySecret string) (string, error)

func FormatMessage

func FormatMessage(m string) []byte

func GetLangs

func GetLangs(mystring string) string

func GetMyApp

func GetMyApp() fyne.App

func HandleMessage

func HandleMessage(m *nats.Msg)

func Init

func Init()

func MyCrypt

func MyCrypt(action string)

func MyHash

func MyHash(action string) bool

func MyJson

func MyJson(action string)

func NATSErase

func NATSErase()

func NodeMap

func NodeMap(node string) bool

func SetMyApp

func SetMyApp(a fyne.App)

Types

type MessageStore

type MessageStore struct {
	MSiduuid   string
	MSalias    string
	MShostname string
	MSipadrs   string
	MSmessage  string
	MSnodeuuid string
	MSdate     string
}
var EncMessage MessageStore // message store

type MyPane

type MyPane struct {
	Title, Intro string
	View         func(w fyne.Window) fyne.CanvasObject
	SupportWeb   bool
}

Jump to

Keyboard shortcuts

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