processor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TMessDeauth         = 0  //деаутентификация()
	TMessVersion        = 1  //запрос версии
	TMessAuth           = 2  //аутентификация(генерация pid)
	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 //стандартные сообщения, чтобы была возможность интернационально выводить их

	TMessAgentDeauth   = 0
	TMessAgentAuth     = 1
	TMessAgentAddCode  = 2
	TMessAgentDelCode  = 3
	TMessAgentAddBytes = 4
	TMessAgentNewConn  = 5

	TMessAgentPing = 18
)

Variables

View Source
var (
	//Processing функции для обработки сообщений
	Processing = []processingMessage{
		{TMessDeauth, nil},
		{TMessVersion, processVersion},
		{TMessAuth, processAuth},
		{TMessLogin, processLogin},
		{TMessNotification, processNotification},
		{TMessRequest, processConnect},
		{TMessConnect, nil},
		{TMessDisconnect, processDisconnect},
		{TMessReg, processReg},
		{TMessContact, processContact},
		{TMessContacts, processContacts},
		{TMessLogout, processLogout},
		{TMessConnectContact, processConnectContact},
		{TMessStatuses, processStatuses},
		{TMessStatus, processStatus},
		{TMessInfoContact, processInfoContact},
		{TMessInfoAnswer, processInfoAnswer},
		{TMessManage, processManage},
		{TMessPing, processPing},
		{TMessContactReverse, processContactReverse},
		{TMessServers, processServers},
		{TMessStandardAlert, nil}}

	ProcessingAgent = []processingAgent{
		{TMessAgentDeauth, nil},
		{TMessAgentAuth, processAgentAuth},
		{TMessAgentAddCode, processAgentAddCode},
		{TMessAgentDelCode, processAgentDelCode},
		{TMessAgentAddBytes, processAgentAddBytes},
		{TMessAgentNewConn, processAgentNewConn},

		18: {TMessAgentPing, processAgentPing}}
)

Functions

func DataServer

func DataServer()

func HelperThread

func HelperThread()

func HttpServer

func HttpServer()

func LoadVNCList

func LoadVNCList()

func MainServer

func MainServer()

func MasterServer

func MasterServer()

func NodeClient

func NodeClient()

func UpdateMyIP

func UpdateMyIP()

Types

type Message

type Message struct {
	TMessage int
	Messages []string
}

Message структура для сообщения

type Node

type Node struct {
	Id   string
	Name string
	Ip   string
	Conn *net.Conn
	// contains filtered or unexported fields
}

Node информация о ноде

type ProcessingWeb

type ProcessingWeb struct {
	Make       string
	Processing func(w http.ResponseWriter, r *http.Request)
}

обработчик для веб запроса

type WebClientStatistic

type WebClientStatistic struct {
	Latitude  float64
	Longitude float64
	Pid       string
	Ip        string
	Note      string
}

type WebConnectionStatistic

type WebConnectionStatistic struct {
	Client1 WebClientStatistic
	Client2 WebClientStatistic

	Node WebClientStatistic
}

Jump to

Keyboard shortcuts

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