processor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: LGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

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 Connect

func Connect(pid, pass string) bool

func DataThread

func DataThread()

func GetPass

func GetPass() string

func MainClient

func MainClient()

func ReloadMe

func ReloadMe() bool

func SendInfo

func SendInfo()

func SetPass

func SetPass(pass string)

func TerminateMe

func TerminateMe(force bool)

func Thread

func Thread()

func UpdateAgentMetric

func UpdateAgentMetric(address string) int

func UpdateMe

func UpdateMe() bool

Types

type Agent

type Agent struct {
	Metric  int
	Address string
}

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:"-"`
}

func GetClient

func GetClient() Client

type Connections

type Connections struct {
	// contains filtered or unexported fields
}

type Message

type Message struct {
	TMessage int
	Messages []string
}

type ProcessingMessage

type ProcessingMessage struct {
	TMessage   int
	Processing func(message Message, conn *net.Conn, ctx context.Context)
}

Jump to

Keyboard shortcuts

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