Documentation
¶
Index ¶
- Constants
- func DeleteRole(id string, skipSession *Session)
- func DeleteSpace(id string, skipSession *Session)
- func DeleteTemplate(templateId string, skipSession *Session)
- func DeleteTemplateVar(id string, skipSession *Session)
- func DeleteToken(id string, skipSession *Session)
- func DeleteUser(id string, skipSession *Session)
- func Destroy(id string)
- func Gc()
- func UpdateRole(role *model.Role, skipSession *Session)
- func UpdateSpace(space *model.Space, updateFields []string, skipSession *Session)
- func UpdateTemplate(template *model.Template, updateFields []string, skipSession *Session)
- func UpdateTemplateVar(templateVar *model.TemplateVar, skipSession *Session)
- func UpdateUser(user *model.User, updateFields []string, skipSession *Session)
- type Session
- func (s *Session) Bootstrap()
- func (s *Session) DeleteRole(id string)
- func (s *Session) DeleteSpace(id string)
- func (s *Session) DeleteTemplate(templateId string)
- func (s *Session) DeleteTemplateVar(id string)
- func (s *Session) DeleteToken(id string)
- func (s *Session) DeleteUser(id string)
- func (s *Session) Destroy()
- func (s *Session) GetLocation() string
- func (s *Session) KeepAlive()
- func (s *Session) UpdateRole(role *model.Role)
- func (s *Session) UpdateSpace(space *model.Space, updateFields []string) bool
- func (s *Session) UpdateTemplate(template *model.Template, updateFields []string)
- func (s *Session) UpdateTemplateVar(templateVar *model.TemplateVar) bool
- func (s *Session) UpdateUser(user *model.User, updateFields []string)
Constants ¶
View Source
const ( SESSION_MAX_AGE = 30 * time.Second SESSION_GC_RATE = 15 * time.Second SESSION_Q_LEN = 100 )
Variables ¶
This section is empty.
Functions ¶
func DeleteRole ¶ added in v0.12.0
delete the role on all leaf nodes
func DeleteSpace ¶
delete the space on all leaf nodes
func DeleteTemplate ¶
delete the template on all leaf nodes
func DeleteTemplateVar ¶
delete the template var on all leaf nodes
func DeleteToken ¶
delete the space on all leaf nodes
func DeleteUser ¶
delete the user on all leaf nodes
func UpdateRole ¶ added in v0.12.0
update the role on all leaf nodes
func UpdateSpace ¶
update the space on all leaf nodes
func UpdateTemplate ¶
update the template on all leaf nodes
func UpdateTemplateVar ¶
func UpdateTemplateVar(templateVar *model.TemplateVar, skipSession *Session)
update the template var on all leaf nodes
Types ¶
type Session ¶
type Session struct {
Id string
// contains filtered or unexported fields
}
func (*Session) DeleteRole ¶ added in v0.12.0
delete the role on a leaf node
func (*Session) DeleteSpace ¶
delete the space on a leaf node
func (*Session) DeleteTemplate ¶
delete the template on a leaf node
func (*Session) DeleteTemplateVar ¶
delete the template var on a leaf node
func (*Session) DeleteToken ¶
delete the space on a leaf node
func (*Session) GetLocation ¶ added in v0.17.0
func (*Session) UpdateRole ¶ added in v0.12.0
func (*Session) UpdateSpace ¶
update the space on a leaf node
func (*Session) UpdateTemplate ¶
update the template on a leaf node
func (*Session) UpdateTemplateVar ¶
func (s *Session) UpdateTemplateVar(templateVar *model.TemplateVar) bool
update the template var on a leaf node
Click to show internal directories.
Click to hide internal directories.