leaf

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSpace

func DeleteSpace(id string)

delete the space on all leaf nodes

func DeleteTemplate

func DeleteTemplate(templateId string)

delete the template on all leaf nodes

func DeleteTemplateVar

func DeleteTemplateVar(id string)

delete the template var on all leaf nodes

func DeleteToken

func DeleteToken(id string)

delete the space on all leaf nodes

func DeleteUser

func DeleteUser(id string)

delete the user on all leaf nodes

func Unregister

func Unregister(id string)

func UpdateSpace

func UpdateSpace(space *model.Space)

update the space on all leaf nodes

func UpdateTemplate

func UpdateTemplate(template *model.Template)

update the template on all leaf nodes

func UpdateTemplateVar

func UpdateTemplateVar(templateVar *model.TemplateVar)

update the template var on all leaf nodes

func UpdateUser

func UpdateUser(user *model.User)

update the user on all leaf nodes

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func Register

func Register(id string, ws *websocket.Conn, location string, token *model.Token) *Session

func (*Session) Bootstrap

func (s *Session) Bootstrap()

func (*Session) DeleteSpace

func (s *Session) DeleteSpace(id string)

delete the space on a leaf node

func (*Session) DeleteTemplate

func (s *Session) DeleteTemplate(templateId string)

delete the template on a leaf node

func (*Session) DeleteTemplateVar

func (s *Session) DeleteTemplateVar(id string)

delete the template var on a leaf node

func (*Session) DeleteToken

func (s *Session) DeleteToken(id string)

delete the space on a leaf node

func (*Session) DeleteUser

func (s *Session) DeleteUser(id string)

delete the user on a leaf node

func (*Session) Ping

func (s *Session) Ping()

func (*Session) UpdateSpace

func (s *Session) UpdateSpace(space *model.Space) bool

update the space on a leaf node

func (*Session) UpdateTemplate

func (s *Session) UpdateTemplate(template *model.Template)

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

func (*Session) UpdateUser

func (s *Session) UpdateUser(user *model.User)

update the user on a leaf node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL