Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureFlag ¶
type FeatureFlag map[Flag]struct{}
FeatureFlag is a lookup map for features that is enabled or disabled
func New ¶
func New(flags []string) FeatureFlag
New return a new feature flags initialized with list of flags
func (FeatureFlag) IfNotSet ¶
func (f FeatureFlag) IfNotSet(flag Flag, do func())
IfNotSet runs function `do` if flag is not set in the feature flags
func (FeatureFlag) IfSet ¶
func (f FeatureFlag) IfSet(flag Flag, do func())
IfSet runs function `do ` if flag is set in the feature flags
type Flag ¶
type Flag string
const ( FlagDisableSessionState Flag = "DISABLE_SESSION_STATE" FlagDisableParticipantJoinBroadcast Flag = "DISABLE_PARTICIPANT_JOIN_BROADCAST" FlagDisableParticipantLeaveBroadcast Flag = "DISABLE_PARTICIPANT_LEAVE_BROADCAST" FlagDisableEntityAddBroadcast Flag = "DISABLE_ENTITY_ADD_BROADCAST" FlagDisableEntityDeleteBroadcast Flag = "DISABLE_ENTITY_DELETE_BROADCAST" FlagDisableEntityUpdatePoseBroadcast Flag = "DISABLE_ENTITY_UPDATE_POSE_BROADCAST" FlagDisableCustomMessageBroadcast Flag = "DISABLE_CUSTOM_MESSAGE_BROADCAST" FlagDisableEntityComponentAddBroadcast Flag = "DISABLE_ENTITY_COMPONENT_ADD_BROADCAST" FlagDisableEntityComponentUpdateBroadcast Flag = "DISABLE_ENTITY_COMPONENT_UPDATE_BROADCAST" FlagDisableEntityComponentDeleteBroadcast Flag = "DISABLE_ENTITY_COMPONENT_DELETE_BROADCAST" )
Click to show internal directories.
Click to hide internal directories.