Documentation ¶
Index ¶
- func ActiveD() bool
- func Breakout(msg string, quiet bool)
- func ConfigIf(n int) bool
- func ConfigIsActiveD() bool
- func ConfigVerbosity() int
- func DoX() bool
- func FeatureFlag(flag string) bool
- func IsProd() bool
- func LogApis() bool
- func MustNot(err error)
- func OnFeatureFlag(flag string, fn func() error) error
- func Verbosity() int
- type ActiveDevelopment
- type Application
- func (app *Application) CloseConnection() error
- func (app *Application) Feedback(msg *osc.Message) error
- func (app *Application) RegisterDefaultHandler(handler osc.HandlerFunc) (string, error)
- func (app *Application) RegisterSubVariable(sub, name string, handler osc.HandlerFunc) (string, error)
- func (app *Application) RegisterVariable(name string, handler osc.HandlerFunc) (string, error)
- func (app *Application) Start(ip string, port int) error
- func (app *Application) StartBlocking(ip string, port int) error
- type Config
- func (c *Config) DoX() bool
- func (c *Config) FeatureFlag(flag string) bool
- func (c *Config) If(n int) bool
- func (c *Config) IsActiveD() bool
- func (c *Config) IsProd() bool
- func (c *Config) LogApis() bool
- func (c *Config) OnFeatureFlag(flag string, fn func() error) error
- func (c *Config) SetActiveD(isAD bool)
- func (c *Config) SetDoX(isDOX bool)
- func (c *Config) SetLogApis(isLogApis bool)
- func (c *Config) SetReleaseMode()
- func (c *Config) SetVerbosity(level int)
- func (c *Config) Verbosity() int
- type DebugOptions
- type DynamicConfig
- func (dy *DynamicConfig) Get(key string) string
- func (dy *DynamicConfig) GetFloat64(key string) (float64, error)
- func (dy *DynamicConfig) MakeFloat64IncDecActions(key, incName, decName string, delta float64)
- func (dy *DynamicConfig) MakeFloat64IncFn(key string, delta float64) func()
- func (dy *DynamicConfig) Set(key, value string)
- func (dy *DynamicConfig) SetFloat64(key string, value float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigIsActiveD ¶
func ConfigIsActiveD() bool
func ConfigVerbosity ¶
func ConfigVerbosity() int
func FeatureFlag ¶
func OnFeatureFlag ¶
Types ¶
type ActiveDevelopment ¶
type ActiveDevelopment struct { App *Application Cfg *Config }
func NewActiveDevelopment ¶
func NewActiveDevelopment(appName string) *ActiveDevelopment
func NewActiveDevelopmentWithFeedback ¶
func NewActiveDevelopmentWithFeedback(appName string) *ActiveDevelopment
func (*ActiveDevelopment) SetActiveD ¶
func (ad *ActiveDevelopment) SetActiveD(isAD bool)
func (*ActiveDevelopment) SetDoX ¶
func (ad *ActiveDevelopment) SetDoX(isDOX bool)
func (*ActiveDevelopment) SetLogApis ¶
func (ad *ActiveDevelopment) SetLogApis(isLogApis bool)
func (*ActiveDevelopment) SetVerbosity ¶
func (ad *ActiveDevelopment) SetVerbosity(level int)
func (*ActiveDevelopment) String ¶
func (ad *ActiveDevelopment) String() string
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(name string) *Application
func NewApplicationWithFeedback ¶
func NewApplicationWithFeedback(name string) *Application
func (*Application) CloseConnection ¶
func (app *Application) CloseConnection() error
func (*Application) RegisterDefaultHandler ¶
func (app *Application) RegisterDefaultHandler(handler osc.HandlerFunc) (string, error)
func (*Application) RegisterSubVariable ¶
func (app *Application) RegisterSubVariable(sub, name string, handler osc.HandlerFunc) (string, error)
func (*Application) RegisterVariable ¶
func (app *Application) RegisterVariable(name string, handler osc.HandlerFunc) (string, error)
func (*Application) StartBlocking ¶
func (app *Application) StartBlocking(ip string, port int) error
type Config ¶
type Config struct { IsActiveDevelopment bool IsShowDebug bool IsLogApis bool VerbosityLevel int IsDoX bool FeatureFlags map[string]struct{} FeatureTags map[string]string FeatureTagsEx map[string]interface{} }
var TheConfig *Config
func (*Config) FeatureFlag ¶
func (*Config) SetActiveD ¶
func (*Config) SetLogApis ¶
func (*Config) SetReleaseMode ¶
func (c *Config) SetReleaseMode()
func (*Config) SetVerbosity ¶
type DynamicConfig ¶
func (*DynamicConfig) Get ¶
func (dy *DynamicConfig) Get(key string) string
func (*DynamicConfig) GetFloat64 ¶
func (dy *DynamicConfig) GetFloat64(key string) (float64, error)
func (*DynamicConfig) MakeFloat64IncDecActions ¶
func (dy *DynamicConfig) MakeFloat64IncDecActions(key, incName, decName string, delta float64)
func (*DynamicConfig) MakeFloat64IncFn ¶
func (dy *DynamicConfig) MakeFloat64IncFn(key string, delta float64) func()
func (*DynamicConfig) Set ¶
func (dy *DynamicConfig) Set(key, value string)
func (*DynamicConfig) SetFloat64 ¶
func (dy *DynamicConfig) SetFloat64(key string, value float64)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.