Documentation ¶
Index ¶
- Constants
- Variables
- func DataStore(myfile string) fyne.URI
- func Decode(s string) []byte
- func Decrypt(text string, MySecret string) (string, error)
- func Encode(b []byte) string
- func Encrypt(text string, MySecret string) (string, error)
- func FormatMessage(m string) []byte
- func GetLangs(mystring string) string
- func GetMyApp() fyne.App
- func HandleMessage(m *nats.Msg)
- func Init()
- func MyCrypt(action string)
- func MyHash(action string) bool
- func MyJson(action string)
- func NATSErase()
- func NodeMap(node string) bool
- func SetMyApp(a fyne.App)
- type MessageStore
- type MyPane
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 FormatMessage ¶
func HandleMessage ¶
func HandleMessage(m *nats.Msg)
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
Click to show internal directories.
Click to hide internal directories.