mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
Add grpc-gateway and /healthz endpoint (#133)
* Add grpc-gateway and /healthz endpoint * Add nolint * nosec
This commit is contained in:
committed by
GitHub
parent
f135869928
commit
f9e7621165
@@ -32,13 +32,8 @@ func (c Config) address() string {
|
||||
return fmt.Sprintf(":%d", c.Port)
|
||||
}
|
||||
|
||||
func (c Config) listener() net.Listener {
|
||||
lis, _ := net.Listen("tcp", c.address())
|
||||
|
||||
if c.insecure() {
|
||||
return lis
|
||||
}
|
||||
return tls.NewListener(lis, c.tlsConfig())
|
||||
func (c Config) gatewayAddress() string {
|
||||
return fmt.Sprintf("localhost:%d", c.Port)
|
||||
}
|
||||
|
||||
func (c Config) tlsConfig() *tls.Config {
|
||||
|
||||
Reference in New Issue
Block a user