support noop connection auth

pull/314/head
Darien Raymond 8 years ago
parent 13dde1799d
commit dfc03ff939
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -18,6 +18,12 @@ func (NoOpAuthenticator) Build() (*loader.TypedSettings, error) {
return loader.NewTypedSettings(new(noop.Config)), nil return loader.NewTypedSettings(new(noop.Config)), nil
} }
type NoOpConnectionAuthenticator struct{}
func (NoOpConnectionAuthenticator) Build() (*loader.TypedSettings, error) {
return loader.NewTypedSettings(new(noop.Config)), nil
}
type SRTPAuthenticator struct{} type SRTPAuthenticator struct{}
func (SRTPAuthenticator) Build() (*loader.TypedSettings, error) { func (SRTPAuthenticator) Build() (*loader.TypedSettings, error) {

@ -24,6 +24,7 @@ var (
}, "type", "") }, "type", "")
tcpHeaderLoader = NewJSONConfigLoader(ConfigCreatorCache{ tcpHeaderLoader = NewJSONConfigLoader(ConfigCreatorCache{
"none": func() interface{} { return new(NoOpConnectionAuthenticator) },
"http": func() interface{} { return new(HTTPAuthenticator) }, "http": func() interface{} { return new(HTTPAuthenticator) },
}, "type", "") }, "type", "")
) )

Loading…
Cancel
Save