...

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 after 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

func ExposePufferCommands

func ExposePufferCommands()

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