Documentation ¶
Index ¶
- Constants
- type AdapterEditor
- type AdviseryTkt
- type AuthFirst
- type AuthNext
- type BprintTkt
- type Data
- type ExecModTkt
- type Executor
- type Folder
- type OauthState
- type Operator
- type PlugDevTkt
- type PlugState
- type PreAuthed
- type RoomTagTkt
- type Session
- type Site
- type SockdTkt
- type User
- type UserContext
- type UserMgmtTkt
Constants ¶
View Source
const ( CTypeSite = "site" CTypeUserLogged = "user_logged" CTypeUserDevice = "user_device" CTypeSession = "session" CTypeData = "data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterEditor ¶
type AdapterEditor struct { TenantId string `json:"-"` AdapterId int64 `json:"adapter_id,omitempty"` DomainName string `json:"domain_name,omitempty"` Type string `json:"type,omitempty"` UserID string `json:"user_id,omitempty"` UserGroup string `json:"ugroup,omitempty"` SessionID int64 `json:"session_id,omitempty"` DeviceId int64 `json:"device_id,omitempty"` }
type AdviseryTkt ¶
type AuthFirst ¶
type AuthFirst struct { AuthId int64 `json:"auth_id,omitempty"` NewUser bool `json:"new_user,omitempty"` UserID string `json:"user_id,omitempty"` UserGroup string `json:"user_group,omitempty"` UserEmail string `json:"user_email,omitempty"` Type string `json:"type,omitempty"` Expiry int64 `json:"expiry,omitempty"` DeviceId string `json:"device_id,omitempty"` }
type AuthNext ¶
type AuthNext struct { UserId string `json:"user_id,omitempty"` UserGroup string `json:"user_group,omitempty"` UserEmail string `json:"user_email,omitempty"` DeviceId string `json:"device_id,omitempty"` EmailVerify bool `json:"email_verify,omitempty"` PassChange bool `json:"pass_change,omitempty"` }
type BprintTkt ¶
type BprintTkt struct { TenantId string `json:"-"` Type string `json:"type"` UserId string `json:"user_id"` DeviceId int64 `json:"device_id,omitempty"` SessionId int64 `json:"session_id,omitempty"` ExecId int64 `json:"exec_id,omitempty"` PlugId string `json:"plug_id,omitempty"` AgentId string `json:"agent_id,omitempty"` }
type Data ¶
type Data struct { TenantId string `json:"-"` Type string `json:"type,omitempty"` UserID string `json:"user_id,omitempty"` UserGroup string `json:"ugroup,omitempty"` SessionID int64 `json:"session_id,omitempty"` DeviceId int64 `json:"device_id,omitempty"` DataSource string `json:"source,omitempty"` DataGroup string `json:"group,omitempty"` DataTables []string `json:"tables,omitempty"` IsExec bool `json:"is_exec,omitempty"` }
type ExecModTkt ¶
type ExecModTkt struct { TenantId string `json:"-"` Type string `json:"type"` UserId string `json:"user_id"` DeviceId int64 `json:"device_id,omitempty"` SessionId int64 `json:"session_id,omitempty"` ExecId int64 `json:"exec_id,omitempty"` PlugId string `json:"plug_id,omitempty"` AgentId string `json:"agent_id,omitempty"` ModName string `json:"mod_name,omitempty"` }
type Executor ¶
type Executor struct { TenantId string `json:"-"` UserId string `json:"user_id,omitempty"` UserGroup string `json:"group,omitempty"` DeviceId int64 `json:"device_id,omitempty"` Type string `json:"type,omitempty"` SessionId int64 `json:"session_id,omitempty"` ExecId int64 `json:"exec_id,omitempty"` PlugId string `json:"plug_id,omitempty"` AgentId string `json:"agent_id,omitempty"` ExecType string `json:"exec_type,omitempty"` TargetId int64 `json:"target_id,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
type Folder ¶
type Folder struct { TenantId string `json:"-"` UserId string `json:"user_id,omitempty"` SessionID int64 `json:"session_id,omitempty"` DeviceId int64 `json:"device_id,omitempty"` Type string `json:"type,omitempty"` Expiry int64 `json:"expiry,omitempty"` Source string `json:"source,omitempty"` Folder string `json:"folder,omitempty"` }
type OauthState ¶
type PlugDevTkt ¶
type PlugState ¶
type PlugState struct { TenantId string `json:"-"` Type string `json:"type"` UserId string `json:"user_id"` DeviceId int64 `json:"device_id,omitempty"` SessionId int64 `json:"session_id,omitempty"` ExecId int64 `json:"exec_id,omitempty"` PlugId string `json:"plug_id,omitempty"` AgentId string `json:"agent_id,omitempty"` KeyPrefix string `json:"key_prefix,omitempty"` }
type RoomTagTkt ¶
type Session ¶
type Session struct { TenantId string `json:"-"` UserID string `json:"user,omitempty"` UserGroup string `json:"group,omitempty"` Type string `json:"type,omitempty"` SessionID int64 `json:"session_id,omitempty"` DeviceId int64 `json:"device_id,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
func (*Session) AsUserCtx ¶
func (u *Session) AsUserCtx() *UserContext
func (*Session) IsSuperAdmin ¶
type Site ¶
type Site struct { TenantId string `json:"tenent_id,omitempty"` Type string `json:"type,omitempty"` XID string `json:"xid,omitempty"` Host string `json:"host,omitempty"` Scopes []string `json:"scopes,omitempty"` PinnedUserGroup string `json:"ugroup,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
func NewSiteClaim ¶
type User ¶
type User struct { TenantId string `json:"tenent_id,omitempty"` UserID string `json:"user_id,omitempty"` UserGroup string `json:"user_group,omitempty"` Type string `json:"type,omitempty"` DeviceId int64 `json:"device_id,omitempty"` Scopes []string `json:"scopes,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
func NewUserDevice ¶
func NewUserLogged ¶
func (*User) DeriveSession ¶
func (*User) IsSuperAdmin ¶
type UserContext ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.