Documentation ¶
Index ¶
- Variables
- func RegisterPITRAgentServer(s grpc.ServiceRegistrar, srv PITRAgentServer)
- type Instant
- func (*Instant) Descriptor() ([]byte, []int)deprecated
- func (x *Instant) GetIncarnation() string
- func (x *Instant) GetScn() string
- func (x *Instant) GetTime() *timestamppb.Timestamp
- func (*Instant) ProtoMessage()
- func (x *Instant) ProtoReflect() protoreflect.Message
- func (x *Instant) Reset()
- func (x *Instant) String() string
- type PITRAgentClient
- type PITRAgentServer
- type Range
- type StatusRequest
- type StatusResponse
- type UnimplementedPITRAgentServer
- type UnsafePITRAgentServer
Constants ¶
This section is empty.
Variables ¶
var File_oracle_pkg_agents_pitr_proto_service_proto protoreflect.FileDescriptor
var PITRAgent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.PITRAgent", HandlerType: (*PITRAgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _PITRAgent_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "oracle/pkg/agents/pitr/proto/service.proto", }
PITRAgent_ServiceDesc is the grpc.ServiceDesc for PITRAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPITRAgentServer ¶
func RegisterPITRAgentServer(s grpc.ServiceRegistrar, srv PITRAgentServer)
Types ¶
type Instant ¶
type Instant struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Scn string `protobuf:"bytes,2,opt,name=scn,proto3" json:"scn,omitempty"` Incarnation string `protobuf:"bytes,3,opt,name=incarnation,proto3" json:"incarnation,omitempty"` // contains filtered or unexported fields }
func (*Instant) Descriptor
deprecated
func (*Instant) GetIncarnation ¶
func (*Instant) GetTime ¶
func (x *Instant) GetTime() *timestamppb.Timestamp
func (*Instant) ProtoMessage ¶
func (*Instant) ProtoMessage()
func (*Instant) ProtoReflect ¶
func (x *Instant) ProtoReflect() protoreflect.Message
type PITRAgentClient ¶
type PITRAgentClient interface {
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
}
PITRAgentClient is the client API for PITRAgent 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 NewPITRAgentClient ¶
func NewPITRAgentClient(cc grpc.ClientConnInterface) PITRAgentClient
type PITRAgentServer ¶
type PITRAgentServer interface { Status(context.Context, *StatusRequest) (*StatusResponse, error) // contains filtered or unexported methods }
PITRAgentServer is the server API for PITRAgent service. All implementations must embed UnimplementedPITRAgentServer for forward compatibility
type Range ¶
type Range struct { Start *Instant `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End *Instant `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*Range) Descriptor
deprecated
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { RecoveryWindows []*Range `protobuf:"bytes,1,rep,name=recovery_windows,json=recoveryWindows,proto3" json:"recovery_windows,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetRecoveryWindows ¶
func (x *StatusResponse) GetRecoveryWindows() []*Range
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedPITRAgentServer ¶
type UnimplementedPITRAgentServer struct { }
UnimplementedPITRAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedPITRAgentServer) Status ¶
func (UnimplementedPITRAgentServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnsafePITRAgentServer ¶
type UnsafePITRAgentServer interface {
// contains filtered or unexported methods
}
UnsafePITRAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PITRAgentServer will result in compilation errors.