Documentation ¶
Index ¶
- func IsSystemAttr(attr string) bool
- func ParseSessionID(fullSessionID string) (pageID int, sessionID string)
- type Control
- func (ctl *Control) AddChildID(childID string)
- func (ctl *Control) AppendAttr(name string, value string)
- func (ctl *Control) At() int
- func (ctl *Control) GetAttr(name string) interface{}
- func (ctl *Control) GetChildrenIds() []string
- func (ctl *Control) ID() string
- func (ctl *Control) InsertChildID(childID string, at int)
- func (ctl *Control) ParentID() string
- func (ctl *Control) RemoveChild(childID string)
- func (ctl *Control) RemoveChildren()
- func (ctl *Control) SetAttr(name string, value string)
- type Page
- type PageName
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSystemAttr ¶
func ParseSessionID ¶
Types ¶
type Control ¶
type Control map[string]interface{}
Control is an element of a page.
func NewControl ¶
NewControl initializes a new control object.
func NewControlFromJSON ¶
NewControlFromJSON initializes a new control instance from JSON.
func (*Control) AddChildID ¶
AddChildID appends the child to the parent control.
func (*Control) AppendAttr ¶
func (*Control) GetChildrenIds ¶
func (*Control) InsertChildID ¶
func (*Control) RemoveChild ¶
func (*Control) RemoveChildren ¶
func (ctl *Control) RemoveChildren()
type Page ¶
type Page struct { ID int `json:"id" redis:"id"` Name string `json:"name" redis:"name"` ClientIP string `json:"clientIP" redis:"clientIP"` IsApp bool `json:"isApp" redis:"isApp"` Permissions string `json:"permissions" redis:"permissions"` }
Page represents a single page.
Click to show internal directories.
Click to hide internal directories.