Documentation ¶
Index ¶
- Variables
- func RegisterHealthcheckWorkerServer(s grpc.ServiceRegistrar, srv HealthcheckWorkerServer)
- type HealthcheckWorkerClient
- type HealthcheckWorkerServer
- type HttpAdvancedData
- func (*HttpAdvancedData) Descriptor() ([]byte, []int)deprecated
- func (x *HttpAdvancedData) GetFwmark() int64
- func (x *HttpAdvancedData) GetHealthcheckAddress() string
- func (x *HttpAdvancedData) GetHealthcheckType() string
- func (x *HttpAdvancedData) GetId() string
- func (x *HttpAdvancedData) GetNearFieldsMode() bool
- func (x *HttpAdvancedData) GetTimeout() *duration.Duration
- func (x *HttpAdvancedData) GetUserDefinedData() map[string]string
- func (*HttpAdvancedData) ProtoMessage()
- func (x *HttpAdvancedData) ProtoReflect() protoreflect.Message
- func (x *HttpAdvancedData) Reset()
- func (x *HttpAdvancedData) String() string
- type HttpData
- func (*HttpData) Descriptor() ([]byte, []int)deprecated
- func (x *HttpData) GetFwmark() int64
- func (x *HttpData) GetHealthcheckAddress() string
- func (x *HttpData) GetId() string
- func (x *HttpData) GetTimeout() *duration.Duration
- func (x *HttpData) GetUri() string
- func (x *HttpData) GetValidResponseCodes() []int64
- func (*HttpData) ProtoMessage()
- func (x *HttpData) ProtoReflect() protoreflect.Message
- func (x *HttpData) Reset()
- func (x *HttpData) String() string
- type HttpsData
- func (*HttpsData) Descriptor() ([]byte, []int)deprecated
- func (x *HttpsData) GetFwmark() int64
- func (x *HttpsData) GetHealthcheckAddress() string
- func (x *HttpsData) GetId() string
- func (x *HttpsData) GetTimeout() *duration.Duration
- func (x *HttpsData) GetUri() string
- func (x *HttpsData) GetValidResponseCodes() []int64
- func (*HttpsData) ProtoMessage()
- func (x *HttpsData) ProtoReflect() protoreflect.Message
- func (x *HttpsData) Reset()
- func (x *HttpsData) String() string
- type IcmpData
- func (*IcmpData) Descriptor() ([]byte, []int)deprecated
- func (x *IcmpData) GetFwmark() int64
- func (x *IcmpData) GetId() string
- func (x *IcmpData) GetIpS() string
- func (x *IcmpData) GetTimeout() *duration.Duration
- func (*IcmpData) ProtoMessage()
- func (x *IcmpData) ProtoReflect() protoreflect.Message
- func (x *IcmpData) Reset()
- func (x *IcmpData) String() string
- type IsOk
- type TcpData
- func (*TcpData) Descriptor() ([]byte, []int)deprecated
- func (x *TcpData) GetFwmark() int64
- func (x *TcpData) GetHealthcheckAddress() string
- func (x *TcpData) GetId() string
- func (x *TcpData) GetTimeout() *duration.Duration
- func (*TcpData) ProtoMessage()
- func (x *TcpData) ProtoReflect() protoreflect.Message
- func (x *TcpData) Reset()
- func (x *TcpData) String() string
- type UnimplementedHealthcheckWorkerServer
- func (UnimplementedHealthcheckWorkerServer) IsHttpAdvancedCheckOk(context.Context, *HttpAdvancedData) (*IsOk, error)
- func (UnimplementedHealthcheckWorkerServer) IsHttpCheckOk(context.Context, *HttpData) (*IsOk, error)
- func (UnimplementedHealthcheckWorkerServer) IsHttpsCheckOk(context.Context, *HttpsData) (*IsOk, error)
- func (UnimplementedHealthcheckWorkerServer) IsIcmpCheckOk(context.Context, *IcmpData) (*IsOk, error)
- func (UnimplementedHealthcheckWorkerServer) IsTcpCheckOk(context.Context, *TcpData) (*IsOk, error)
- type UnsafeHealthcheckWorkerServer
Constants ¶
This section is empty.
Variables ¶
var File_t1_healthcheck_proto protoreflect.FileDescriptor
var HealthcheckWorker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lbos.t1.healthcheck.HealthcheckWorker", HandlerType: (*HealthcheckWorkerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsHttpAdvancedCheckOk", Handler: _HealthcheckWorker_IsHttpAdvancedCheckOk_Handler, }, { MethodName: "IsHttpCheckOk", Handler: _HealthcheckWorker_IsHttpCheckOk_Handler, }, { MethodName: "IsHttpsCheckOk", Handler: _HealthcheckWorker_IsHttpsCheckOk_Handler, }, { MethodName: "IsIcmpCheckOk", Handler: _HealthcheckWorker_IsIcmpCheckOk_Handler, }, { MethodName: "IsTcpCheckOk", Handler: _HealthcheckWorker_IsTcpCheckOk_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "t1-healthcheck.proto", }
HealthcheckWorker_ServiceDesc is the grpc.ServiceDesc for HealthcheckWorker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHealthcheckWorkerServer ¶
func RegisterHealthcheckWorkerServer(s grpc.ServiceRegistrar, srv HealthcheckWorkerServer)
Types ¶
type HealthcheckWorkerClient ¶
type HealthcheckWorkerClient interface { IsHttpAdvancedCheckOk(ctx context.Context, in *HttpAdvancedData, opts ...grpc.CallOption) (*IsOk, error) IsHttpCheckOk(ctx context.Context, in *HttpData, opts ...grpc.CallOption) (*IsOk, error) IsHttpsCheckOk(ctx context.Context, in *HttpsData, opts ...grpc.CallOption) (*IsOk, error) IsIcmpCheckOk(ctx context.Context, in *IcmpData, opts ...grpc.CallOption) (*IsOk, error) IsTcpCheckOk(ctx context.Context, in *TcpData, opts ...grpc.CallOption) (*IsOk, error) }
HealthcheckWorkerClient is the client API for HealthcheckWorker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHealthcheckWorkerClient ¶
func NewHealthcheckWorkerClient(cc grpc.ClientConnInterface) HealthcheckWorkerClient
type HealthcheckWorkerServer ¶
type HealthcheckWorkerServer interface { IsHttpAdvancedCheckOk(context.Context, *HttpAdvancedData) (*IsOk, error) IsHttpCheckOk(context.Context, *HttpData) (*IsOk, error) IsHttpsCheckOk(context.Context, *HttpsData) (*IsOk, error) IsIcmpCheckOk(context.Context, *IcmpData) (*IsOk, error) IsTcpCheckOk(context.Context, *TcpData) (*IsOk, error) // contains filtered or unexported methods }
HealthcheckWorkerServer is the server API for HealthcheckWorker service. All implementations must embed UnimplementedHealthcheckWorkerServer for forward compatibility
type HttpAdvancedData ¶
type HttpAdvancedData struct { HealthcheckType string `protobuf:"bytes,1,opt,name=healthcheckType,proto3" json:"healthcheckType,omitempty"` HealthcheckAddress string `protobuf:"bytes,2,opt,name=healthcheckAddress,proto3" json:"healthcheckAddress,omitempty"` NearFieldsMode bool `protobuf:"varint,3,opt,name=nearFieldsMode,proto3" json:"nearFieldsMode,omitempty"` UserDefinedData map[string]string `` /* 171-byte string literal not displayed */ Timeout *duration.Duration `protobuf:"bytes,5,opt,name=timeout,proto3" json:"timeout,omitempty"` Fwmark int64 `protobuf:"varint,6,opt,name=fwmark,proto3" json:"fwmark,omitempty"` Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*HttpAdvancedData) Descriptor
deprecated
func (*HttpAdvancedData) Descriptor() ([]byte, []int)
Deprecated: Use HttpAdvancedData.ProtoReflect.Descriptor instead.
func (*HttpAdvancedData) GetFwmark ¶
func (x *HttpAdvancedData) GetFwmark() int64
func (*HttpAdvancedData) GetHealthcheckAddress ¶
func (x *HttpAdvancedData) GetHealthcheckAddress() string
func (*HttpAdvancedData) GetHealthcheckType ¶
func (x *HttpAdvancedData) GetHealthcheckType() string
func (*HttpAdvancedData) GetId ¶
func (x *HttpAdvancedData) GetId() string
func (*HttpAdvancedData) GetNearFieldsMode ¶
func (x *HttpAdvancedData) GetNearFieldsMode() bool
func (*HttpAdvancedData) GetTimeout ¶
func (x *HttpAdvancedData) GetTimeout() *duration.Duration
func (*HttpAdvancedData) GetUserDefinedData ¶
func (x *HttpAdvancedData) GetUserDefinedData() map[string]string
func (*HttpAdvancedData) ProtoMessage ¶
func (*HttpAdvancedData) ProtoMessage()
func (*HttpAdvancedData) ProtoReflect ¶
func (x *HttpAdvancedData) ProtoReflect() protoreflect.Message
func (*HttpAdvancedData) Reset ¶
func (x *HttpAdvancedData) Reset()
func (*HttpAdvancedData) String ¶
func (x *HttpAdvancedData) String() string
type HttpData ¶
type HttpData struct { HealthcheckAddress string `protobuf:"bytes,1,opt,name=healthcheckAddress,proto3" json:"healthcheckAddress,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` ValidResponseCodes []int64 `protobuf:"varint,3,rep,packed,name=validResponseCodes,proto3" json:"validResponseCodes,omitempty"` Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` Fwmark int64 `protobuf:"varint,5,opt,name=fwmark,proto3" json:"fwmark,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*HttpData) Descriptor
deprecated
func (*HttpData) GetHealthcheckAddress ¶
func (*HttpData) GetTimeout ¶
func (*HttpData) GetValidResponseCodes ¶
func (*HttpData) ProtoMessage ¶
func (*HttpData) ProtoMessage()
func (*HttpData) ProtoReflect ¶
func (x *HttpData) ProtoReflect() protoreflect.Message
type HttpsData ¶
type HttpsData struct { HealthcheckAddress string `protobuf:"bytes,1,opt,name=healthcheckAddress,proto3" json:"healthcheckAddress,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` ValidResponseCodes []int64 `protobuf:"varint,3,rep,packed,name=validResponseCodes,proto3" json:"validResponseCodes,omitempty"` Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` Fwmark int64 `protobuf:"varint,5,opt,name=fwmark,proto3" json:"fwmark,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*HttpsData) Descriptor
deprecated
func (*HttpsData) GetHealthcheckAddress ¶
func (*HttpsData) GetTimeout ¶
func (*HttpsData) GetValidResponseCodes ¶
func (*HttpsData) ProtoMessage ¶
func (*HttpsData) ProtoMessage()
func (*HttpsData) ProtoReflect ¶
func (x *HttpsData) ProtoReflect() protoreflect.Message
type IcmpData ¶
type IcmpData struct { IpS string `protobuf:"bytes,1,opt,name=ipS,proto3" json:"ipS,omitempty"` Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` Fwmark int64 `protobuf:"varint,3,opt,name=fwmark,proto3" json:"fwmark,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IcmpData) Descriptor
deprecated
func (*IcmpData) GetTimeout ¶
func (*IcmpData) ProtoMessage ¶
func (*IcmpData) ProtoMessage()
func (*IcmpData) ProtoReflect ¶
func (x *IcmpData) ProtoReflect() protoreflect.Message
type IsOk ¶
type IsOk struct { IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IsOk) Descriptor
deprecated
func (*IsOk) ProtoMessage ¶
func (*IsOk) ProtoMessage()
func (*IsOk) ProtoReflect ¶
func (x *IsOk) ProtoReflect() protoreflect.Message
type TcpData ¶
type TcpData struct { HealthcheckAddress string `protobuf:"bytes,1,opt,name=healthcheckAddress,proto3" json:"healthcheckAddress,omitempty"` Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` Fwmark int64 `protobuf:"varint,3,opt,name=fwmark,proto3" json:"fwmark,omitempty"` Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*TcpData) Descriptor
deprecated
func (*TcpData) GetHealthcheckAddress ¶
func (*TcpData) GetTimeout ¶
func (*TcpData) ProtoMessage ¶
func (*TcpData) ProtoMessage()
func (*TcpData) ProtoReflect ¶
func (x *TcpData) ProtoReflect() protoreflect.Message
type UnimplementedHealthcheckWorkerServer ¶
type UnimplementedHealthcheckWorkerServer struct { }
UnimplementedHealthcheckWorkerServer must be embedded to have forward compatible implementations.
func (UnimplementedHealthcheckWorkerServer) IsHttpAdvancedCheckOk ¶
func (UnimplementedHealthcheckWorkerServer) IsHttpAdvancedCheckOk(context.Context, *HttpAdvancedData) (*IsOk, error)
func (UnimplementedHealthcheckWorkerServer) IsHttpCheckOk ¶
func (UnimplementedHealthcheckWorkerServer) IsHttpsCheckOk ¶
func (UnimplementedHealthcheckWorkerServer) IsIcmpCheckOk ¶
func (UnimplementedHealthcheckWorkerServer) IsTcpCheckOk ¶
type UnsafeHealthcheckWorkerServer ¶
type UnsafeHealthcheckWorkerServer interface {
// contains filtered or unexported methods
}
UnsafeHealthcheckWorkerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthcheckWorkerServer will result in compilation errors.