Documentation ¶
Index ¶
- func GetDefaultConfigPath() string
- func RegisterUnmarshalConfigFunc(namespace, name string, fn UnmarshalConfigFunc)
- func UnmarshalConfig(namespace, name, text string) (interface{}, error)
- func WrapKeyYaml(key, text string) string
- type AclConfig
- type ApiConfig
- type AuthConfig
- type Config
- type DummyAuthConfig
- type HttpApiConfig
- type LogConfig
- type MeepoConfig
- type ProxyConfig
- type RedisSignalingConfig
- type SecretAuthConfig
- type SignalingConfig
- type Socks5Config
- type TransportConfig
- type UnmarshalConfigFunc
- type UnsupportedConfigKeyError
- type UnsupportedError
- type WebrtcTransportConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
func RegisterUnmarshalConfigFunc ¶
func RegisterUnmarshalConfigFunc(namespace, name string, fn UnmarshalConfigFunc)
func UnmarshalConfig ¶
func WrapKeyYaml ¶
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Name string `yaml:"name"`
}
type Config ¶
type Config struct {
Meepo *MeepoConfig `yaml:"meepo"`
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type DummyAuthConfig ¶
type DummyAuthConfig struct {
Name string `yaml:"name"`
}
type HttpApiConfig ¶
type MeepoConfig ¶
type MeepoConfig struct { IdentityFile string `yaml:"identityFile,omitempty"` Daemon bool `yaml:"daemon,omitempty"` AsSignaling bool `yaml:"asSignaling,omitempty"` Log *LogConfig `yaml:"log,omitempty"` Proxy *ProxyConfig `yaml:"proxy,omitempty"` Auth *AuthConfig `yaml:"auth,omitempty"` AuthI interface{} `yaml:"-"` Transport *TransportConfig `yaml:"transport,omitempty"` TransportI interface{} `yaml:"-"` Signaling *SignalingConfig `yaml:"signaling,omitempty"` SignalingI interface{} `yaml:"-"` Api *ApiConfig `yaml:"api,omitempty"` ApiI interface{} `yaml:"-"` Acl *AclConfig `yaml:"acl,omitempty"` }
func (*MeepoConfig) MarshalYAML ¶
func (mc *MeepoConfig) MarshalYAML() (interface{}, error)
func (*MeepoConfig) UnmarshalYAML ¶
func (mc *MeepoConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
type ProxyConfig ¶
type ProxyConfig struct {
Socks5 *Socks5Config `yaml:"socks5"`
}
type RedisSignalingConfig ¶
type SecretAuthConfig ¶
type SignalingConfig ¶
type SignalingConfig struct {
Name string `yaml:"name"`
}
type Socks5Config ¶
type TransportConfig ¶
type TransportConfig struct {
Name string `yaml:"name"`
}
type UnmarshalConfigFunc ¶
type UnsupportedConfigKeyError ¶
type UnsupportedConfigKeyError struct {
Key string
}
func (UnsupportedConfigKeyError) Error ¶
func (e UnsupportedConfigKeyError) Error() string
type UnsupportedError ¶
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
type WebrtcTransportConfig ¶
Click to show internal directories.
Click to hide internal directories.