Documentation ¶
Index ¶
- Variables
- func CreateSpace(accId string, cluster uint) (string, util.AppToken, bool)
- func DeleteAdapters(account string) error
- func DeleteToken(id, token string)
- func GetToken(id string) (conversations.ConversationToken, error)
- func InsertAdapters(account string, adapters []string)
- func IsInSpace(accId string) bool
- func JoinSpace(accId string, space string, cluster uint) (util.AppToken, bool)
- func LeaveSpace(accId string) bool
- func LoadMembersArray(ids []string) (map[string][]StoredMember, error)
- func MembersToPipes(members []StoredMember) ([]string, []string)
- func SetupCaches()
- func ValidateToken(id string, token string) (conversations.ConversationToken, error)
- func ValidateTokens(tokens *[]conversations.SentConversationToken) ([]conversations.ConversationToken, []string, error)
- type SpaceInfo
- type StoredMember
Constants ¶
This section is empty.
Variables ¶
View Source
var CSInstance *pipeshandler.Instance
This just needs to be kept somewhere to avoid import cycles
View Source
var CSNode *pipes.LocalNode
View Source
var ErrInvalidToken = errors.New(localization.InvalidRequest)
Errors
Functions ¶
func CreateSpace ¶
Create a space
func DeleteToken ¶
func DeleteToken(id, token string)
func GetToken ¶
func GetToken(id string) (conversations.ConversationToken, error)
Get a conversation token
func InsertAdapters ¶
Insert all the adapters
func LoadMembersArray ¶
func LoadMembersArray(ids []string) (map[string][]StoredMember, error)
func MembersToPipes ¶
func MembersToPipes(members []StoredMember) ([]string, []string)
func SetupCaches ¶
func SetupCaches()
func ValidateToken ¶
func ValidateToken(id string, token string) (conversations.ConversationToken, error)
This does database requests and stuff
func ValidateTokens ¶
func ValidateTokens(tokens *[]conversations.SentConversationToken) ([]conversations.ConversationToken, []string, error)
Types ¶
type StoredMember ¶
type StoredMember struct { TokenID string // Conversation token ID Token string // Conversation token Node int64 }
func LoadMembers ¶
func LoadMembers(id string) ([]StoredMember, error)
Does database requests and stuff
Click to show internal directories.
Click to hide internal directories.