mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
add cert generation, tls config, reflection
This commit is contained in:
@ -35,6 +35,8 @@ func main() {
|
||||
svc, err = service.New(
|
||||
service.WithContext(ctx),
|
||||
service.WithName("Greeting"),
|
||||
service.WithReflection(true),
|
||||
service.WithSecure(true),
|
||||
service.WithAfterStart(func() error {
|
||||
fmt.Println("Server listening on", svc.Options().Address())
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user