config

package
v0.0.0-...-0ae55c9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const BUFFER_SIZE int = 4096
View Source
const IV_SIZE int = 16
View Source
const MySecret string = "abd&1*~#^2^#s0^=)^^7%c34" // must be 24 characters
View Source
const Password = "123456" // default password shipped with app

default gui password

Variables

View Source
var Dark = 0
View Source
var DarkButton = color.RGBA{187, 188, 201, 32}

var DarkButton = color.RGBA{162, 168, 250, 64}

View Source
var DarkDisabled = color.RGBA{187, 188, 201, 64}
View Source
var DarkFocus = color.RGBA{187, 188, 201, 64}
View Source
var DarkHover = color.RGBA{187, 188, 201, 64}
View Source
var DarkHyperlink = color.RGBA{187, 188, 201, 255}
View Source
var DarkInputBackground = color.RGBA{187, 188, 201, 32}
View Source
var DarkInputBorder = color.RGBA{187, 188, 201, 64}
View Source
var DarkPlaceholder = color.RGBA{187, 188, 201, 220}
View Source
var DarkPressed = color.RGBA{187, 188, 201, 220}
View Source
var DarkPrimary = color.RGBA{187, 188, 201, 255}
View Source
var DarkScrollBar = color.RGBA{187, 188, 201, 64}
View Source
var DarkSelection = color.RGBA{187, 188, 201, 128}
View Source
var DarkSeparator = color.RGBA{187, 188, 201, 64}
View Source
var DarkShadow = color.RGBA{187, 188, 201, 64}
View Source
var FyneApp fyne.App
View Source
var FyneFilter bool
View Source
var FyneMainWin fyne.Window
View Source
var FyneMessageList fyne.Widget
View Source
var FyneMessageWin fyne.Window
View Source
var KeyAes = []byte{35, 46, 57, 24, 85, 35, 24, 74, 87, 35, 88, 98, 66, 32, 14, 05} // must be 16 bytes

default encryption

View Source
var KeyHmac = []byte{36, 45, 53, 21, 87, 35, 24, 74, 87, 35, 88, 98, 66, 32, 14, 05} // must be 16 bytes
View Source
var Light = 1
View Source
var LightButton = color.RGBA{129, 137, 252, 250}
View Source
var LightDisabled = color.RGBA{129, 137, 252, 64}
View Source
var LightFocus = color.RGBA{129, 137, 252, 64}
View Source
var LightHover = color.RGBA{129, 137, 252, 250}
View Source
var LightHyperlink = color.RGBA{129, 137, 252, 1}
View Source
var LightInputBackground = color.RGBA{129, 137, 252, 32}
View Source
var LightInputBorder = color.RGBA{129, 137, 252, 250}
View Source
var LightPlaceholder = color.RGBA{129, 137, 252, 220}
View Source
var LightPressed = color.RGBA{129, 137, 252, 220}
View Source
var LightPrimary = color.RGBA{129, 137, 252, 255}
View Source
var LightScrollBar = color.RGBA{129, 137, 252, 250}
View Source
var LightSelection = color.RGBA{129, 137, 252, 200}
View Source
var LightSeparator = color.Black
View Source
var LightShadow = color.RGBA{129, 137, 252, 64}
View Source
var LoggedOn bool
View Source
var MyLangs = map[string]string{}/* 387 elements not displayed */

eng esp cmn

View Source
var NatsAlias string
View Source
var NatsCaroot = "" /* 1448-byte string literal not displayed */
View Source
var NatsClientcert = "" /* 1538-byte string literal not displayed */
View Source
var NatsClientkey = "" /* 1706-byte string literal not displayed */
View Source
var NatsMessages = make(map[int]MessageStore)
View Source
var NatsMsgMaxAge string
View Source
var NatsNodeUUID string
View Source
var NatsQueue = "MESSAGES"
View Source
var NatsQueueDurable = "snatsdurable"
View Source
var NatsQueuePassword = "987654321098765432109876"
View Source
var NatsReceivingMessages bool
View Source
var NatsServer = "nats://nats.newhorizons3000.org:4222"
View Source
var NatsUser = "natsoperator"

defaults

View Source
var NatsUserPassword = "hjscr44iod"
View Source
var PasswordHash string
View Source
var PreferedLanguage string
View Source
var QuitReceive = make(chan bool)
View Source
var Retro = 2
View Source
var RetroButton = color.RGBA{116, 207, 103, 250}
View Source
var RetroDisabled = color.RGBA{116, 207, 103, 64}
View Source
var RetroFocus = color.RGBA{116, 207, 103, 64}
View Source
var RetroHover = color.RGBA{116, 207, 103, 250}
View Source
var RetroHyperlink = color.RGBA{116, 207, 103, 1}
View Source
var RetroInputBackground = color.RGBA{116, 207, 103, 32}
View Source
var RetroInputBorder = color.RGBA{116, 207, 103, 250}
View Source
var RetroPlaceholder = color.RGBA{116, 207, 103, 255}
View Source
var RetroPressed = color.RGBA{116, 207, 103, 220}
View Source
var RetroPrimary = color.RGBA{116, 207, 103, 255}
View Source
var RetroScrollBar = color.RGBA{116, 207, 103, 250}
View Source
var RetroSelection = color.RGBA{116, 207, 103, 200}
View Source
var RetroSeparator = color.Black
View Source
var RetroShadow = color.RGBA{116, 207, 103, 64}
View Source
var Selected = 0
View Source
var SipAddressbookLookup = true
View Source
var SipAddressbookLookupPhoto = true
View Source
var SipAddressbookOverideAddress = true
View Source
var SipGeneralCallHistory = 32 // 8 16 32 64 128
View Source
var SipGeneralCallWaiting = true

sip fields

View Source
var SipGeneralHangup3Way = true
View Source
var SipGeneralInCallOSD = true
View Source
var SipNetworkMaxTcpSize = 1000000
View Source
var SipNetworkMaxUdpSize = 65535
View Source
var SipNetworkPort = 5060
View Source
var SipNetworkRtpPort = 8000
View Source
var SipPresenseAvailableAtStartup = true
View Source
var SipProtocolAllowMissingContactIn200 = true
View Source
var SipProtocolAllowSDPChangeDuringSetup = false
View Source
var SipProtocolCallHoldRFC = "3264" // RFC 2543 3264
View Source
var SipProtocolEncodeRouteAsList = true
View Source
var SipProtocolExtensionsPRACK = "SUPPORTED" // DISABLED SUPPORTED REQUIRED PREFERRED
View Source
var SipProtocolExtensionsReplace = true
View Source
var SipProtocolMaxForwardsHeaderMandatory = false
View Source
var SipProtocolPrivacyPAsserted = false
View Source
var SipProtocolPrivacyPPreferred = false
View Source
var SipProtocolPutRegExpiryInHeader = true
View Source
var SipProtocolRedirectAsk = true
View Source
var SipProtocolRedirectMax = 1
View Source
var SipProtocolRedirectionAllow = true
View Source
var SipProtocolReferAcceptTransfer = true
View Source
var SipProtocolReferAllowTransfer = false
View Source
var SipProtocolReferAsk = true
View Source
var SipProtocolReferAttendedAOR = false
View Source
var SipProtocolReferAutoRefresh = false
View Source
var SipProtocolReferHoldReferrerBefore = false
View Source
var SipProtocolReferHoldReferrerWhile = false
View Source
var SipProtocolUseCompactHeaderNames = false
View Source
var SipProtocolUseDomainInHeader = false
View Source
var SipRingToneBackTone = ""
View Source
var SipRingtoneBackPlay = true
View Source
var SipRingtonePlay = true
View Source
var SipRingtoneTone = ""
View Source
var SipSecurityEnableRTPEncryption = false
View Source
var SipServerAddQvalueToRegistration = "1.000"
View Source
var SipServerDNS = "192.168.0.15"
View Source
var SipServerExpirySeconds = 3600
View Source
var SipServerOutboundProxy = ""
View Source
var SipServerRegisterAtStartup = true
View Source
var SipServerSendInDialogRequestsProxy = false
View Source
var SipServerUseOutboundProxy = false
View Source
var SipSoundCardAlsaCapturePeriodSize = 1024 // 16 32 64 128 256 512 1024
View Source
var SipSoundCardAlsaPlayPeriodSize = 1024 // 16 32 64 128 256 512 1024
View Source
var SipSoundCardMicrophone = ""
View Source
var SipSoundCardOssFragsize = 1024 // 16 32 64 128 256 512 1024
View Source
var SipSoundCardRingtone = ""
View Source
var SipSoundCardSpeaker = ""
View Source
var SipSoundCardValidate = true
View Source
var SipTimerNAtKeepAlive = 30
View Source
var SipTimerNoAnswer = 30
View Source
var SipTransportNATKeepAlive = false
View Source
var SipTransportNATTransversal = false
View Source
var SipTransportNATTransversalUseStaticIP = ""
View Source
var SipTransportNATTransversalUseStun = ""
View Source
var SipTransportProtocol = "AUTO" // TCP UDP
View Source
var SipTransportUDOThreshold = "1300bytes" // 1300bytes 1600bytes
View Source
var SipUserAkAop []string
View Source
var SipUserAkaAmp []string
View Source
var SipUserAlias []string
View Source
var SipUserAuthName []string
View Source
var SipUserAuthPassword []string
View Source
var SipUserAuthRealm []string
View Source
var SipUserDomain []string
View Source
var SipUserName []string
View Source
var SipUserOrganization []string
View Source
var SipVoiceMailMWIType = "Solicited"
View Source
var SipVoiceMailServer = "192.168.0.15"
View Source
var SipVoiceMailServerUseProxy = false
View Source
var SipVoiceMailSubscruptionDuration = "3600"
View Source
var SipVoiceMailboxAddress = 9999
View Source
var SipVoiceMailboxUserName = 9999

Functions

func CheckNatsMsgByUUID

func CheckNatsMsgByUUID(iduuid string) bool

check msg by uuid

func ComparePasswords

func ComparePasswords(hashedPwd string, plainPwd []byte) bool

validate password

func DEPRECATEDDeleteNatsMsgByUUID

func DEPRECATEDDeleteNatsMsgByUUID(iduuid string)

delete msg by uuid

func DataStore

func DataStore(file string) fyne.URI

func Decrypt

func Decrypt(text string, secret string) string

decrypt string

func DecryptFile

func DecryptFile(filePathIn, filePathOut string) error

func Edit

func Edit(action string, value string) bool

func Encrypt

func Encrypt(text string, secret string) string

encrypt string

func EncryptFile

func EncryptFile(filePathIn, filePathOut string) error

func Erase

func Erase()

security erase jetstream data

func GetLangs

func GetLangs(c string) string

do translation

func HashAndSalt

func HashAndSalt(pwd []byte) string

hash and salt

func LoadHashWithDefault

func LoadHashWithDefault(filename string, password string) (string, bool)

create and load hash

func ParseURL

func ParseURL(urlStr string) *url.URL

func Receive

func Receive()

thread for receiving messages

func SaveHash

func SaveHash(filename string, hash string) (string, bool)

save hash

func Send

func Send(m string, alias string) bool

send message to nats

Types

type MessageStore

type MessageStore struct {
	MSiduuid   string
	MSalias    string
	MShostname string
	MSipadrs   string
	MSmessage  string
	MSnodeuuid string
	MSdate     string
}

type MyTheme

type MyTheme struct{}

func (MyTheme) Color

func (m MyTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

func (MyTheme) Font

func (m MyTheme) Font(style fyne.TextStyle) fyne.Resource

func (MyTheme) Icon

func (m MyTheme) Icon(name fyne.ThemeIconName) fyne.Resource

func (MyTheme) SetIcon

func (m MyTheme) SetIcon(name fyne.ThemeIconName, variant fyne.ThemeVariant)

func (MyTheme) Size

func (m MyTheme) Size(name fyne.ThemeSizeName) float32

Jump to

Keyboard shortcuts

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