usersessions

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Local client
	Local SessionType = "local"
	// HTTP remote client
	HTTP = "http"
	// Telnet remote client
	Telnet = "telnet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel string

AccessLevel defines what a user is allowed to do

const (
	// ReadOnly means changes to the system and/or operation are not permitted
	ReadOnly AccessLevel = "readOnly"
	// ReadWrite means changes to the system and/or operation are permitted
	ReadWrite = "readWrite"
)

type SessionType

type SessionType string

SessionType is the type of user session

type UserSession

type UserSession struct {
	// Id is the identifier of this session
	Id int64 `json:"id"`
	// AccessLevel of this session
	AccessLevel AccessLevel `json:"accessLevel"`
	// SessionType of this session
	SessionType SessionType `json:"sessionType"`
	// Origin of this session. For remote sessions this equals the remote IP address
	Origin string `json:"origin"`
	// OriginId is the corresponding identifier. If it is a remote session it is the remote port
	// else it defaults to the PID of the current process
	OriginId int `json:"originId"`
}

UserSession represents a user session

Jump to

Keyboard shortcuts

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