add cert generation, tls config, reflection

This commit is contained in:
2020-08-07 10:59:27 +02:00
parent 8e5e48f39b
commit 4ca6bedf5a
6 changed files with 156 additions and 31 deletions

View File

@ -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