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 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
Click to show internal directories.
Click to hide internal directories.