Documentation ¶
Index ¶
- Constants
- func Connect(pid, pass string) bool
- func DataThread()
- func GetPass() string
- func MainClient()
- func ReloadMe() bool
- func SendInfo()
- func SetPass(pass string)
- func TerminateMe(force bool)
- func Thread()
- func UpdateAgentMetric(address string) int
- func UpdateMe() bool
- type Agent
- type Client
- type Connections
- type Message
- type ProcessingMessage
Constants ¶
View Source
const ( StaticMessageEmpty = 0 StaticMessageNetworkError = 1 StaticMessageProxyError = 2 StaticMessageAuthError = 3 StaticMessageVncError = 4 StaticMessageTimeoutError = 5 StaticMessageAbsentError = 6 StaticMessageTypeError = 7 StaticMessageAuthFail = 8 StaticMessageRegFail = 9 StaticMessageRegMail = 10 StaticMessageRegSuccessful = 11 StaticMessageLocalReq = 12 StaticMessageLocalConn = 13 StaticMessageLocalDisconn = 14 StaticMessageLocalError = 15 TMessDeauth = 0 TMessVersion = 1 TMessAuth = 2 TMessLogin = 3 TMessNotification = 4 TMessRequest = 5 TMessConnect = 6 TMessDisconnect = 7 TMessReg = 8 TMessContact = 9 TMessContacts = 10 TMessLogout = 11 TMessConnectContact = 12 TMessStatuses = 13 TMessStatus = 14 TMessInfoContact = 15 TMessInfoAnswer = 16 TMessManage = 17 TMessPing = 18 TMessContactReverse = 19 TMessServers = 20 TMessStandardAlert = 21 TMessLocalTest = 20 // TMessLocalInfo = 21 //идентификатор и пароль, версию и т.п. TMessLocalConnect = 22 //запрос о подключении TMessLocalNotification = 23 //сообщение всплывающее TMessLocalInfoClient = 24 //побочная информация, путь до внц клиента TMessLocalTerminate = 25 //завершение коммуникатора TMessLocalReg = 26 //регистрация профиля TMessLocalLogin = 27 //вход в профиль TMessLocalContact = 28 //создание, редактирование, удаление TMessLocalContacts = 29 //весь список контактов профиля TMessLocalLogout = 30 //выход из профиля TMessLocalConnContact = 31 //подключение к контакту из профиля TMessLocalMessage = 32 //система сообщений TMessLocalExec = 33 //запуск приложения, например, внс клиента TMessLocalStatus = 34 // TMessLocalListVNC = 35 // TMessLocalInfoContact = 36 // TMessLocalInfoAnswer = 37 // TMessLocalManage = 38 // TMessLocalSave = 39 // TMessLocalOptionClear = 40 // TMessLocalReload = 41 // TMessLocalLog = 42 // TMessLocalMymanage = 43 // TMessLocalMyinfo = 44 // TMessLocalInfoHide = 45 // TMessLocalContReverse = 46 // TMessLocalOptionsUi = 47 // TMessLocalProxy = 48 // TMessLocalStandardAlert = 49 )
View Source
const (
WaitRefreshAgents = 180
)
Variables ¶
This section is empty.
Functions ¶
func DataThread ¶
func DataThread()
func MainClient ¶
func MainClient()
func TerminateMe ¶
func TerminateMe(force bool)
func UpdateAgentMetric ¶
Types ¶
type Client ¶
type Client struct { Serial string `json:"-"` Pid string Pass string //только для веб клиента Version string Name string Salt string `json:"-"` Token string `json:"-"` Profile common.Profile Conn *net.Conn `json:"-"` LocalServ *net.Listener `json:"-"` DataServ *net.Listener `json:"-"` WebServ *net.Listener `json:"-"` }
type Connections ¶
type Connections struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.