mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
27 lines
695 B
Go
27 lines
695 B
Go
package conf
|
|
|
|
import (
|
|
"v2ray.com/core/common/loader"
|
|
"v2ray.com/core/transport/internet/authenticators/noop"
|
|
"v2ray.com/core/transport/internet/authenticators/srtp"
|
|
"v2ray.com/core/transport/internet/authenticators/utp"
|
|
)
|
|
|
|
type NoOpAuthenticator struct{}
|
|
|
|
func (NoOpAuthenticator) Build() (*loader.TypedSettings, error) {
|
|
return loader.NewTypedSettings(new(noop.Config)), nil
|
|
}
|
|
|
|
type SRTPAuthenticator struct{}
|
|
|
|
func (SRTPAuthenticator) Build() (*loader.TypedSettings, error) {
|
|
return loader.NewTypedSettings(new(srtp.Config)), nil
|
|
}
|
|
|
|
type UTPAuthenticator struct{}
|
|
|
|
func (UTPAuthenticator) Build() (*loader.TypedSettings, error) {
|
|
return loader.NewTypedSettings(new(utp.Config)), nil
|
|
}
|