pb

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_healthcheck_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Bytes.ProtoReflect.Descriptor instead.

func (*Bytes) GetBytes

func (x *Bytes) GetBytes() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) ProtoReflect

func (x *Bytes) ProtoReflect() protoreflect.Message

func (*Bytes) Reset

func (x *Bytes) Reset()

func (*Bytes) String

func (x *Bytes) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetError

func (x *Error) GetError() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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.

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Wrapper.ProtoReflect.Descriptor instead.

func (*Wrapper) GetPayload

func (x *Wrapper) GetPayload() *anypb.Any

func (*Wrapper) GetType

func (x *Wrapper) GetType() string

func (*Wrapper) ProtoMessage

func (*Wrapper) ProtoMessage()

func (*Wrapper) ProtoReflect

func (x *Wrapper) ProtoReflect() protoreflect.Message

func (*Wrapper) Reset

func (x *Wrapper) Reset()

func (*Wrapper) String

func (x *Wrapper) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL