...

Package groupSupport

import "github.com/Diarkis/diarkis/groupSupport"
Overview
Index

Overview ▾

func AfterRandomGroupCmd

func AfterRandomGroupCmd(callback func(uint8, uint16, []byte, *user.User, func(error)))

AfterRandomGroupCmd registers a callback function to be executed before random join group command: Must be called before ExposeCommands

func BeforeRandomGroupCmd

func BeforeRandomGroupCmd(callback func(uint8, uint16, []byte, *user.User, func(error)))

BeforeRandomGroupCmd registers a callback function to be executed before random join group command: Must be called before ExposeCommands

func DefineGroupSupport

func DefineGroupSupport()

DefineGroupSupport required to use groupSupport.ExposeCommands - This function MUST be called in HTTP server ONLY

func ExposeCommands

func ExposeCommands()

ExposeCommands exposes optional commands for group - group.ExposeCommands must be called BEFORE calling this function groupSupport.DefineGroupSupport() MUST be called in HTTP server for this function to work