github.com/sagernet/sing-shadowsocks2@v0.2.0/shadowsocks.go (about) 1 package shadowsocks 2 3 import ( 4 "context" 5 6 C "github.com/sagernet/sing-shadowsocks2/cipher" 7 _ "github.com/sagernet/sing-shadowsocks2/shadowaead" 8 _ "github.com/sagernet/sing-shadowsocks2/shadowaead_2022" 9 _ "github.com/sagernet/sing-shadowsocks2/shadowstream" 10 ) 11 12 type ( 13 Method = C.Method 14 MethodOptions = C.MethodOptions 15 ) 16 17 func CreateMethod(ctx context.Context, method string, options MethodOptions) (Method, error) { 18 return C.CreateMethod(ctx, method, options) 19 }