Documentation ¶
Index ¶
- Variables
- func RegisterHealthChecksServer(s grpc.ServiceRegistrar, srv HealthChecksServer)
- func ToHealthCheck(h *HealthCheck) *data.HealthCheck
- type Bytes
- type Empty
- type Error
- type HealthCheck
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetHealthcheck() *HealthCheck
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type HealthChecksClient
- type HealthChecksServer
- type UnimplementedHealthChecksServer
- type UnsafeHealthChecksServer
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
var File_healthcheck_proto protoreflect.FileDescriptor
var HealthChecks_ServiceDesc = grpc.ServiceDesc{ ServiceName: "go_bludgeon_healthcheck.HealthChecks", HandlerType: (*HealthChecksServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "healthcheck", Handler: _HealthChecks_Healthcheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "healthcheck.proto", }
HealthChecks_ServiceDesc is the grpc.ServiceDesc for HealthChecks service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHealthChecksServer ¶
func RegisterHealthChecksServer(s grpc.ServiceRegistrar, srv HealthChecksServer)
func ToHealthCheck ¶
func ToHealthCheck(h *HealthCheck) *data.HealthCheck
Types ¶
type Bytes ¶
type Bytes struct { // bytes describes the payload Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
Bytes makes it easier to provide
func (*Bytes) Descriptor
deprecated
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) ProtoReflect ¶
func (x *Bytes) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
Empty
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Error ¶
type Error struct { // error Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
Error
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type HealthCheck ¶
type HealthCheck struct { // time Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
HealthCheck
func FromHealthCheck ¶
func FromHealthCheck(h *data.HealthCheck) *HealthCheck
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetTime ¶
func (x *HealthCheck) GetTime() int64
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) ProtoReflect ¶
func (x *HealthCheck) ProtoReflect() protoreflect.Message
func (*HealthCheck) Reset ¶
func (x *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (x *HealthCheck) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct { // healthcheck Healthcheck *HealthCheck `protobuf:"bytes,1,opt,name=healthcheck,proto3" json:"healthcheck,omitempty"` // contains filtered or unexported fields }
HealthCheckResponse
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetHealthcheck ¶
func (x *HealthCheckResponse) GetHealthcheck() *HealthCheck
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type HealthChecksClient ¶
type HealthChecksClient interface { // healthcheck Healthcheck(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) }
HealthChecksClient is the client API for HealthChecks 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 NewHealthChecksClient ¶
func NewHealthChecksClient(cc grpc.ClientConnInterface) HealthChecksClient
type HealthChecksServer ¶
type HealthChecksServer interface { // healthcheck Healthcheck(context.Context, *Empty) (*HealthCheckResponse, error) // contains filtered or unexported methods }
HealthChecksServer is the server API for HealthChecks service. All implementations must embed UnimplementedHealthChecksServer for forward compatibility
type UnimplementedHealthChecksServer ¶
type UnimplementedHealthChecksServer struct { }
UnimplementedHealthChecksServer must be embedded to have forward compatible implementations.
func (UnimplementedHealthChecksServer) Healthcheck ¶
func (UnimplementedHealthChecksServer) Healthcheck(context.Context, *Empty) (*HealthCheckResponse, error)
type UnsafeHealthChecksServer ¶
type UnsafeHealthChecksServer interface {
// contains filtered or unexported methods
}
UnsafeHealthChecksServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthChecksServer will result in compilation errors.
type Wrapper ¶
type Wrapper struct { // type is a string identifying the type of payload Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // payload describes the payload as protobuf.any Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
Wrapper describes a basic data type for conversion of any other data type
func (*Wrapper) Descriptor
deprecated
func (*Wrapper) GetPayload ¶
func (*Wrapper) ProtoMessage ¶
func (*Wrapper) ProtoMessage()
func (*Wrapper) ProtoReflect ¶
func (x *Wrapper) ProtoReflect() protoreflect.Message