Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllListeners = &MListeners{mutex: sync.RWMutex{}, list: map[string]*Listener{}}
AllListeners is a global variable that holds all the listeners
Functions ¶
func ParseSocket ¶
func ParseSocket(fname string, data interface{}, ws *websocket.Conn, userID string, username string)
ParseSocket takes in data from the websocket and does what it needs to with it
func ReInitListener ¶
func ReInitListener(l Listener)
ReInitListener rebuilds the live listeners from the database
Types ¶
type Listener ¶
type Listener struct { LType string //Type of listener Name string //Listener name Host string //IP or FQDN of the server Port string //Port to listen on ListChan chan bool //Channel used to kill off the listeners Key string //Listener UUID4 name PrivKey []byte //RSA private key PubKey []byte //RSA public key Advanced interface{} //Advanced listener options held as JSON here AgentOptions listeners.AgentOptions }
Listener struct holds data on all listeners
type MListeners ¶
type MListeners struct {
// contains filtered or unexported fields
}
MListeners is the struct for a list of all listeners
Click to show internal directories.
Click to hide internal directories.