recoverproto

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "recoverproto.API",
	HandlerType: (*APIServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Recover",
			Handler:       _API_Recover_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "recover.proto",
}

API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_recover_proto protoreflect.FileDescriptor

Functions

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

Types

type APIClient

type APIClient interface {
	Recover(ctx context.Context, opts ...grpc.CallOption) (API_RecoverClient, error)
}

APIClient is the client API for API 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 NewAPIClient

func NewAPIClient(cc grpc.ClientConnInterface) APIClient

type APIServer

type APIServer interface {
	Recover(API_RecoverServer) error
	// contains filtered or unexported methods
}

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type API_RecoverClient

type API_RecoverClient interface {
	Send(*RecoverMessage) error
	Recv() (*RecoverResponse, error)
	grpc.ClientStream
}

type API_RecoverServer

type API_RecoverServer interface {
	Send(*RecoverResponse) error
	Recv() (*RecoverMessage, error)
	grpc.ServerStream
}

type RecoverMessage

type RecoverMessage struct {

	// Types that are assignable to Request:
	//
	//	*RecoverMessage_StateDiskKey
	//	*RecoverMessage_MeasurementSecret
	Request isRecoverMessage_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*RecoverMessage) Descriptor deprecated

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

Deprecated: Use RecoverMessage.ProtoReflect.Descriptor instead.

func (*RecoverMessage) GetMeasurementSecret

func (x *RecoverMessage) GetMeasurementSecret() []byte

func (*RecoverMessage) GetRequest

func (m *RecoverMessage) GetRequest() isRecoverMessage_Request

func (*RecoverMessage) GetStateDiskKey

func (x *RecoverMessage) GetStateDiskKey() []byte

func (*RecoverMessage) ProtoMessage

func (*RecoverMessage) ProtoMessage()

func (*RecoverMessage) ProtoReflect

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

func (*RecoverMessage) Reset

func (x *RecoverMessage) Reset()

func (*RecoverMessage) String

func (x *RecoverMessage) String() string

type RecoverMessage_MeasurementSecret

type RecoverMessage_MeasurementSecret struct {
	MeasurementSecret []byte `protobuf:"bytes,2,opt,name=measurement_secret,json=measurementSecret,proto3,oneof"`
}

type RecoverMessage_StateDiskKey

type RecoverMessage_StateDiskKey struct {
	StateDiskKey []byte `protobuf:"bytes,1,opt,name=state_disk_key,json=stateDiskKey,proto3,oneof"`
}

type RecoverResponse

type RecoverResponse struct {
	DiskUuid string `protobuf:"bytes,1,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverResponse) Descriptor deprecated

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

Deprecated: Use RecoverResponse.ProtoReflect.Descriptor instead.

func (*RecoverResponse) GetDiskUuid

func (x *RecoverResponse) GetDiskUuid() string

func (*RecoverResponse) ProtoMessage

func (*RecoverResponse) ProtoMessage()

func (*RecoverResponse) ProtoReflect

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

func (*RecoverResponse) Reset

func (x *RecoverResponse) Reset()

func (*RecoverResponse) String

func (x *RecoverResponse) String() string

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) Recover

type UnsafeAPIServer

type UnsafeAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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