Documentation
¶
Index ¶
- func CheckAccess(ctx *fiber.Ctx) error
- func HandlePadOpen(c *fiber.Ctx) error
- func NormalizeAuthzLevel(level interface{}) (*string, error)
- func UserCanModify(padId *string, req *webaccess.SocketClientRequest) bool
- type ClientType
- type GlobalPadCache
- type GrantedAccess
- type IdRequest
- type List
- type Manager
- type ReadOnlyManager
- type SecurityManager
- type SessionManager
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccess ¶
func HandlePadOpen ¶
func NormalizeAuthzLevel ¶
func UserCanModify ¶
func UserCanModify(padId *string, req *webaccess.SocketClientRequest) bool
Types ¶
type ClientType ¶
type ClientType interface {
}
type GlobalPadCache ¶
type GlobalPadCache struct {
// contains filtered or unexported fields
}
func (*GlobalPadCache) DeletePad ¶
func (g *GlobalPadCache) DeletePad(padID string)
type GrantedAccess ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() Manager
func (*Manager) DoesPadExist ¶
func (*Manager) IsValidPadId ¶
type ReadOnlyManager ¶
func NewReadOnlyManager ¶
func NewReadOnlyManager() *ReadOnlyManager
func (*ReadOnlyManager) GetIds ¶
func (r *ReadOnlyManager) GetIds(id *string) IdRequest
func (*ReadOnlyManager) GetReadOnlyId ¶
func (r *ReadOnlyManager) GetReadOnlyId(pad string) string
func (*ReadOnlyManager) RemoveReadOnlyPad ¶
func (r *ReadOnlyManager) RemoveReadOnlyPad(readonlyId, padId string) error
type SecurityManager ¶
type SecurityManager struct {
ReadOnlyManager *ReadOnlyManager
PadManager Manager
AuthorManager author.Manager
SessionManager *SessionManager
}
func NewSecurityManager ¶
func NewSecurityManager() SecurityManager
func (*SecurityManager) CheckAccess ¶
func (s *SecurityManager) CheckAccess(padId *string, sessionCookie *string, token *string, userSettings *webaccess.SocketClientRequest) (*GrantedAccess, error)
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager() *SessionManager
Click to show internal directories.
Click to hide internal directories.