pnyx/channel.go

23 lines
295 B
Go

package pnyx
import (
)
type ChannelID uint32
const RootChannelID = 0
type ModeID uint8
type CommandID uint8
type PermissionMap map[PeerID]map[ModeID]map[CommandID]bool
type Channel struct {
modes map[ModeID]Mode
permissions PermissionMap
parent ChannelID
}
type Mode interface {
}