mirror of https://github.com/status-im/consul.git
Add GRPC and GRPCUseTLS to api.HealthCheckDefinition (#12108)
* Add GRPC to HealthCheckDefinition * add GRPC and GRPCUseTLS
This commit is contained in:
parent
d7a0392dbc
commit
31a39c9528
|
@ -277,6 +277,8 @@ func (s *HTTPHandlers) convertOps(resp http.ResponseWriter, req *http.Request) (
|
|||
Method: check.Definition.Method,
|
||||
Body: check.Definition.Body,
|
||||
TCP: check.Definition.TCP,
|
||||
GRPC: check.Definition.GRPC,
|
||||
GRPCUseTLS: check.Definition.GRPCUseTLS,
|
||||
Interval: interval,
|
||||
Timeout: timeout,
|
||||
DeregisterCriticalServiceAfter: deregisterCriticalServiceAfter,
|
||||
|
|
|
@ -62,6 +62,8 @@ type HealthCheckDefinition struct {
|
|||
TLSServerName string
|
||||
TLSSkipVerify bool
|
||||
TCP string
|
||||
GRPC string
|
||||
GRPCUseTLS bool
|
||||
IntervalDuration time.Duration `json:"-"`
|
||||
TimeoutDuration time.Duration `json:"-"`
|
||||
DeregisterCriticalServiceAfterDuration time.Duration `json:"-"`
|
||||
|
|
Loading…
Reference in New Issue