message

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGob

func RegisterGob()

Types

type BodyCallSystem

type BodyCallSystem struct {
	Token   string
	Command string
}

type BodyCallSystemResult

type BodyCallSystemResult struct {
	Token  string
	Result []byte
}

type BodyClientInfo

type BodyClientInfo struct {
	Version           string
	OS                string
	User              string
	Python2           string
	Python3           string
	NetworkInterfaces map[string]string
}

type BodyDuplicateClient

type BodyDuplicateClient struct{}

type BodyDynamicTunnelCreate

type BodyDynamicTunnelCreate struct{}

type BodyDynamicTunnelCreateFailed

type BodyDynamicTunnelCreateFailed struct {
	Reason string
}

type BodyDynamicTunnelCreated

type BodyDynamicTunnelCreated struct {
	Port int
}

type BodyDynamicTunnelDestroied

type BodyDynamicTunnelDestroied struct{}

type BodyDynamicTunnelDestroy

type BodyDynamicTunnelDestroy struct{}

type BodyDynamicTunnelDestroyFailed

type BodyDynamicTunnelDestroyFailed struct {
	Reason string
}

type BodyFileSize

type BodyFileSize struct {
	Token string
	Path  string
}

type BodyFileSizeResult

type BodyFileSizeResult struct {
	Token string
	N     int64
}

type BodyGetClientInfo

type BodyGetClientInfo struct{}

type BodyProcessStarted

type BodyProcessStarted struct {
	Key string
	Pid int
}

type BodyProcessStoped

type BodyProcessStoped struct {
	Key  string
	Code int
}

type BodyPullTunnelConnect

type BodyPullTunnelConnect struct {
	Token   string
	Address string
}

type BodyPullTunnelConnectFailed

type BodyPullTunnelConnectFailed struct {
	Token  string
	Reason string
}

type BodyPullTunnelConnected

type BodyPullTunnelConnected struct {
	Token string
}

type BodyPullTunnelData

type BodyPullTunnelData struct {
	Token string
	Data  []byte
}

type BodyPullTunnelDisconnect

type BodyPullTunnelDisconnect struct {
	Token string
}

type BodyPullTunnelDisconnected

type BodyPullTunnelDisconnected struct {
	Token string
}

type BodyPushTunnelConnect

type BodyPushTunnelConnect struct {
	Token   string
	Address string
}

type BodyPushTunnelConnectFailed

type BodyPushTunnelConnectFailed struct {
	Token  string
	Reason string
}

type BodyPushTunnelConnected

type BodyPushTunnelConnected struct {
	Token string
}

type BodyPushTunnelCreate

type BodyPushTunnelCreate struct {
	Address string
}

type BodyPushTunnelCreateFailed

type BodyPushTunnelCreateFailed struct {
	Address string
	Reason  string
}

type BodyPushTunnelCreated

type BodyPushTunnelCreated struct {
	Address string
}

type BodyPushTunnelData

type BodyPushTunnelData struct {
	Token string
	Data  []byte
}

type BodyPushTunnelDelete

type BodyPushTunnelDelete struct {
	Token string
}

type BodyPushTunnelDeleteFailed

type BodyPushTunnelDeleteFailed struct {
	Token  string
	Reason string
}

type BodyPushTunnelDeleted

type BodyPushTunnelDeleted struct {
	Token string
}

type BodyPushTunnelDisonnect

type BodyPushTunnelDisonnect struct {
	Token string
}

type BodyPushTunnelDisonnectFailed

type BodyPushTunnelDisonnectFailed struct {
	Token string
}

type BodyPushTunnelDisonnected

type BodyPushTunnelDisonnected struct {
	Token  string
	Reason string
}

type BodyReadFile

type BodyReadFile struct {
	Token string
	Path  string
}

type BodyReadFileEx

type BodyReadFileEx struct {
	Token string
	Path  string
	Start int64
	Size  int64
}

type BodyReadFileExResult

type BodyReadFileExResult struct {
	Token  string
	Result []byte
}

type BodyReadFileResult

type BodyReadFileResult struct {
	Token  string
	Result []byte
}

type BodyStartProcess

type BodyStartProcess struct {
	Key           string
	Path          string
	WindowColumns int
	WindowRows    int
}

type BodyStdio

type BodyStdio struct {
	Key  string
	Data []byte
}

type BodyTerminateProcess

type BodyTerminateProcess struct {
	Key string
}

type BodyUpdate

type BodyUpdate struct {
	DistributorURL string
	Version        string
}

type BodyWindowSize

type BodyWindowSize struct {
	Key     string
	Columns int
	Rows    int
}

type BodyWriteFile

type BodyWriteFile struct {
	Token   string
	Path    string
	Content []byte
}

type BodyWriteFileEx

type BodyWriteFileEx struct {
	Token   string
	Path    string
	Content []byte
}

type BodyWriteFileExResult

type BodyWriteFileExResult struct {
	Token string
	N     int
}

type BodyWriteFileResult

type BodyWriteFileResult struct {
	Token string
	N     int
}

type Message

type Message struct {
	Type MessageType
	Body interface{}
}

type MessageType

type MessageType int
const (
	// Platypus -> Termite
	GET_CLIENT_INFO MessageType = iota // DO NOT CHANGE OR PREPEND OPCODE BRFORE THIS OPCODE
	UPDATE

	WINDOW_SIZE
	DUPLICATED_CLIENT
	PROCESS_START
	PROCESS_TERMINATE
	PULL_TUNNEL_CONNECT
	PULL_TUNNEL_DISCONNECT
	PUSH_TUNNEL_CREATE
	PUSH_TUNNEL_DELETE
	PUSH_TUNNEL_CONNECTED
	PUSH_TUNNEL_CONNECT_FAILED
	PUSH_TUNNEL_DISCONNECTED
	PUSH_TUNNEL_DISCONNECT_FAILED
	DYNAMIC_TUNNEL_CREATE
	DYNAMIC_TUNNEL_DESTROY
	CALL_SYSTEM
	READ_FILE
	READ_FILE_EX
	FILE_SIZE
	WRITE_FILE
	WRITE_FILE_EX

	// Termite -> Platypus
	CLIENT_INFO
	PROCESS_STARTED
	PROCESS_STOPED
	PULL_TUNNEL_CONNECTED
	PULL_TUNNEL_CONNECT_FAILED
	PULL_TUNNEL_DISCONNECTED
	PUSH_TUNNEL_CONNECT
	PUSH_TUNNEL_DISCONNECT
	PUSH_TUNNEL_CREATED
	PUSH_TUNNEL_CREATE_FAILED
	PUSH_TUNNEL_DELETED
	PUSH_TUNNEL_DELETE_FAILED
	DYNAMIC_TUNNEL_CREATED
	DYNAMIC_TUNNEL_CREATE_FAILED
	DYNAMIC_TUNNEL_DESTROIED
	DYNAMIC_TUNNEL_DESTROY_FAILED
	CALL_SYSTEM_RESULT
	READ_FILE_RESULT
	READ_FILE_EX_RESULT
	FILE_SIZE_RESULT
	WRITE_FILE_RESULT
	WRITE_FILE_EX_RESULT

	// Platypus <-> Termite
	STDIO
	PULL_TUNNEL_DATA
	PUSH_TUNNEL_DATA
)

Jump to

Keyboard shortcuts

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