@@ -33,44 +33,36 @@ func provideServerOpts() ([]server.ConfigOption, error) {
3333	hRegister  :=  proto .RegisterEchoHandler (hInstance )
3434
3535	opts  :=  []server.ConfigOption {}
36- 	opts  =  append (opts , server .WithEntrypointConfig (mgrpc .NewConfig (
37- 		mgrpc .WithName ("grpc" ),
36+ 	opts  =  append (opts , server .WithEntrypointConfig ("grpc" , mgrpc .NewConfig (
3837		mgrpc .WithInsecure (),
3938		mgrpc .WithHandlers (hRegister ),
4039		mgrpc .WithReflection (true ),
4140	)))
42- 	opts  =  append (opts , server .WithEntrypointConfig (mgrpc .NewConfig (
43- 		mgrpc .WithName ("grpcs" ),
41+ 	opts  =  append (opts , server .WithEntrypointConfig ("grpcs" , mgrpc .NewConfig (
4442		mgrpc .WithHandlers (hRegister ),
4543		mgrpc .WithReflection (true ),
4644	)))
47- 	opts  =  append (opts , server .WithEntrypointConfig (mhttp .NewConfig (
48- 		mhttp .WithName ("http" ),
45+ 	opts  =  append (opts , server .WithEntrypointConfig ("http" , mhttp .NewConfig (
4946		mhttp .WithInsecure (),
5047		mhttp .WithHandlers (hRegister ),
5148	)))
52- 	opts  =  append (opts , server .WithEntrypointConfig (mhttp .NewConfig (
53- 		mhttp .WithName ("https" ),
49+ 	opts  =  append (opts , server .WithEntrypointConfig ("https" , mhttp .NewConfig (
5450		mhttp .WithDisableHTTP2 (),
5551		mhttp .WithHandlers (hRegister ),
5652	)))
57- 	opts  =  append (opts , server .WithEntrypointConfig (mhttp .NewConfig (
58- 		mhttp .WithName ("h2c" ),
53+ 	opts  =  append (opts , server .WithEntrypointConfig ("h2c" , mhttp .NewConfig (
5954		mhttp .WithInsecure (),
6055		mhttp .WithAllowH2C (),
6156		mhttp .WithHandlers (hRegister ),
6257	)))
63- 	opts  =  append (opts , server .WithEntrypointConfig (mhttp .NewConfig (
64- 		mhttp .WithName ("http2" ),
58+ 	opts  =  append (opts , server .WithEntrypointConfig ("http2" , mhttp .NewConfig (
6559		mhttp .WithHandlers (hRegister ),
6660	)))
67- 	opts  =  append (opts , server .WithEntrypointConfig (mhttp .NewConfig (
68- 		mhttp .WithName ("http3" ),
61+ 	opts  =  append (opts , server .WithEntrypointConfig ("http3" , mhttp .NewConfig (
6962		mhttp .WithHTTP3 (),
7063		mhttp .WithHandlers (hRegister ),
7164	)))
72- 	opts  =  append (opts , server .WithEntrypointConfig (drpc .NewConfig (
73- 		drpc .WithName ("drpc" ),
65+ 	opts  =  append (opts , server .WithEntrypointConfig ("drpc" , drpc .NewConfig (
7466		drpc .WithHandlers (hRegister ),
7567	)))
7668
0 commit comments