2024-04-06 16:38:14 -06:00
|
|
|
package pnyx
|
|
|
|
|
|
|
|
import (
|
|
|
|
)
|
|
|
|
|
|
|
|
type ChannelID uint32
|
|
|
|
|
|
|
|
const RootChannelID = 0
|
|
|
|
|
|
|
|
type ModeID uint8
|
|
|
|
type CommandID uint8
|
|
|
|
|
2024-04-07 13:27:28 -06:00
|
|
|
type PermissionMap map[PeerID]map[ModeID]map[CommandID]bool
|
2024-04-06 16:38:14 -06:00
|
|
|
|
|
|
|
type Channel struct {
|
|
|
|
modes map[ModeID]Mode
|
|
|
|
permissions PermissionMap
|
|
|
|
parent ChannelID
|
|
|
|
}
|
|
|
|
|
|
|
|
type Mode interface {
|
|
|
|
}
|