protos

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Instant.ProtoReflect.Descriptor instead.

func (*Instant) GetIncarnation

func (x *Instant) GetIncarnation() string

func (*Instant) GetScn

func (x *Instant) GetScn() string

func (*Instant) GetTime

func (x *Instant) GetTime() *timestamppb.Timestamp

func (*Instant) ProtoMessage

func (*Instant) ProtoMessage()

func (*Instant) ProtoReflect

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

func (*Instant) Reset

func (x *Instant) Reset()

func (*Instant) String

func (x *Instant) String() string

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

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() *Instant

func (*Range) GetStart

func (x *Range) GetStart() *Instant

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

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

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

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

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.

Jump to

Keyboard shortcuts

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