23 lines
297 B
Go
23 lines
297 B
Go
package pnyx
|
|
|
|
import (
|
|
)
|
|
|
|
type ChannelID uint32
|
|
|
|
const RootChannelID = 0
|
|
|
|
type ModeID uint8
|
|
type CommandID uint8
|
|
|
|
type PermissionMap map[ClientID]map[ModeID]map[CommandID]bool
|
|
|
|
type Channel struct {
|
|
modes map[ModeID]Mode
|
|
permissions PermissionMap
|
|
parent ChannelID
|
|
}
|
|
|
|
type Mode interface {
|
|
}
|