session

package
v0.0.0-...-90fbc02 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package session implements the core module to start web-socket connection with message gateway service.

Index

Constants

This section is empty.

Variables

View Source
var GenerateUUID = func() (id uuid.UUID) {
	uuid.SwitchFormat(uuid.CleanHyphen)
	return uuid.NewV4()
}

Generate UUID

Functions

This section is empty.

Types

type Session

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

Session encapsulates the logic on configuring, starting and stopping core modules

func NewSession

func NewSession(context context.T) *Session

NewSession gets session core module that manages the web-socket connection between Agent and message gateway service.

func (*Session) ModuleExecute

func (s *Session) ModuleExecute() (err error)

ModuleExecute starts the scheduling of the session module

func (*Session) ModuleName

func (s *Session) ModuleName() string

ModuleName returns the name of module

func (*Session) ModuleRequestStop

func (s *Session) ModuleRequestStop(stopType contracts.StopType) (err error)

ModuleRequestStop handles the termination of the session module

Directories

Path Synopsis
communicator package implement base communicator for network connections.
communicator package implement base communicator for network connections.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
websocketutil
Package websocketutil contains methods for interacting with websocket connections.
Package websocketutil contains methods for interacting with websocket connections.
config package implement configuration retrieval for the session package.
config package implement configuration retrieval for the session package.
contracts package defines all channel messages structure.
contracts package defines all channel messages structure.
controlchannel package implement control communicator for web socket connection.
controlchannel package implement control communicator for web socket connection.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
crypto package provides methods to encrypt and decrypt data
crypto package provides methods to encrypt and decrypt data
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package datachannel implements data channel which is used to interactively run commands.
Package datachannel implements data channel which is used to interactively run commands.
Package logging reads byte data from the log file and prints it on the console.
Package logging reads byte data from the log file and prints it on the console.
console
Package console contains platform specific configurations to enable logging.
Package console contains platform specific configurations to enable logging.
plugins
interactivecommands
Package interactivecommands implements session shell plugin with interactive commands.
Package interactivecommands implements session shell plugin with interactive commands.
port
Package port implements session manager's port plugin
Package port implements session manager's port plugin
port/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
sessionplugin
Package sessionplugin implements functionality common to all session manager plugins
Package sessionplugin implements functionality common to all session manager plugins
sessionplugin/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
standardstream
Package standardstream implements session standard stream plugin.
Package standardstream implements session standard stream plugin.
Package retry implements back off retry strategy for session manager channel connection.
Package retry implements back off retry strategy for session manager channel connection.
Package service is a wrapper for the message gateway Service
Package service is a wrapper for the message gateway Service
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package shell is a common library that implements session manager shell.
Package shell is a common library that implements session manager shell.
execcmd
Package execcmd wraps up the os.Process interface.
Package execcmd wraps up the os.Process interface.
Package telemetry is used to schedule and send the audit logs to MGS
Package telemetry is used to schedule and send the audit logs to MGS
utility package implements all the shared methods between clients.
utility package implements all the shared methods between clients.
model
Package model contains data objects for session utility
Package model contains data objects for session utility
winpty package is wrapper package for calling procedures of winpty.dll
winpty package is wrapper package for calling procedures of winpty.dll

Jump to

Keyboard shortcuts

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