Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type AddBackupReply
- type AddBackupRequest
- type Backup
- func (*Backup) Descriptor() ([]byte, []int)deprecated
- func (x *Backup) GetBackupCid() string
- func (x *Backup) GetDeviceID() string
- func (x *Backup) GetUpdatedAt() *timestamp.Timestamp
- func (*Backup) ProtoMessage()
- func (x *Backup) ProtoReflect() protoreflect.Message
- func (x *Backup) Reset()
- func (x *Backup) String() string
- type ExportReply
- func (*ExportReply) Descriptor() ([]byte, []int)deprecated
- func (x *ExportReply) GetAddrs() []string
- func (x *ExportReply) GetThreadKey() string
- func (*ExportReply) ProtoMessage()
- func (x *ExportReply) ProtoReflect() protoreflect.Message
- func (x *ExportReply) Reset()
- func (x *ExportReply) String() string
- type ExportRequest
- type ListBackupsReply
- type ListBackupsRequest
- type UnimplementedAPIServer
- func (*UnimplementedAPIServer) AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error)
- func (*UnimplementedAPIServer) Export(context.Context, *ExportRequest) (*ExportReply, error)
- func (*UnimplementedAPIServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error)
- func (*UnimplementedAPIServer) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error)
- type UpdateLatestBackupReply
- func (*UpdateLatestBackupReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLatestBackupReply) GetBackup() *Backup
- func (*UpdateLatestBackupReply) ProtoMessage()
- func (x *UpdateLatestBackupReply) ProtoReflect() protoreflect.Message
- func (x *UpdateLatestBackupReply) Reset()
- func (x *UpdateLatestBackupReply) String() string
- type UpdateLatestBackupRequest
- func (*UpdateLatestBackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLatestBackupRequest) GetBackupCid() string
- func (x *UpdateLatestBackupRequest) GetDeviceID() string
- func (*UpdateLatestBackupRequest) ProtoMessage()
- func (x *UpdateLatestBackupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLatestBackupRequest) Reset()
- func (x *UpdateLatestBackupRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { AddBackup(ctx context.Context, in *AddBackupRequest, opts ...grpc.CallOption) (*AddBackupReply, error) UpdateLatestBackup(ctx context.Context, in *UpdateLatestBackupRequest, opts ...grpc.CallOption) (*UpdateLatestBackupReply, error) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsReply, error) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportReply, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error) Export(context.Context, *ExportRequest) (*ExportReply, error) }
APIServer is the server API for API service.
type AddBackupReply ¶
type AddBackupReply struct { BackupCid string `protobuf:"bytes,1,opt,name=backupCid,proto3" json:"backupCid,omitempty"` // contains filtered or unexported fields }
func (*AddBackupReply) Descriptor
deprecated
func (*AddBackupReply) Descriptor() ([]byte, []int)
Deprecated: Use AddBackupReply.ProtoReflect.Descriptor instead.
func (*AddBackupReply) GetBackupCid ¶ added in v0.3.0
func (x *AddBackupReply) GetBackupCid() string
func (*AddBackupReply) ProtoMessage ¶
func (*AddBackupReply) ProtoMessage()
func (*AddBackupReply) ProtoReflect ¶
func (x *AddBackupReply) ProtoReflect() protoreflect.Message
func (*AddBackupReply) Reset ¶
func (x *AddBackupReply) Reset()
func (*AddBackupReply) String ¶
func (x *AddBackupReply) String() string
type AddBackupRequest ¶
type AddBackupRequest struct { BackupDir string `protobuf:"bytes,1,opt,name=backupDir,proto3" json:"backupDir,omitempty"` // contains filtered or unexported fields }
func (*AddBackupRequest) Descriptor
deprecated
func (*AddBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddBackupRequest.ProtoReflect.Descriptor instead.
func (*AddBackupRequest) GetBackupDir ¶
func (x *AddBackupRequest) GetBackupDir() string
func (*AddBackupRequest) ProtoMessage ¶
func (*AddBackupRequest) ProtoMessage()
func (*AddBackupRequest) ProtoReflect ¶
func (x *AddBackupRequest) ProtoReflect() protoreflect.Message
func (*AddBackupRequest) Reset ¶
func (x *AddBackupRequest) Reset()
func (*AddBackupRequest) String ¶
func (x *AddBackupRequest) String() string
type Backup ¶ added in v0.3.0
type Backup struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` BackupCid string `protobuf:"bytes,2,opt,name=backupCid,proto3" json:"backupCid,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*Backup) Descriptor
deprecated
added in
v0.3.0
func (*Backup) GetBackupCid ¶ added in v0.3.0
func (*Backup) GetDeviceID ¶ added in v0.3.0
func (*Backup) GetUpdatedAt ¶ added in v0.3.0
func (*Backup) ProtoMessage ¶ added in v0.3.0
func (*Backup) ProtoMessage()
func (*Backup) ProtoReflect ¶ added in v0.3.0
func (x *Backup) ProtoReflect() protoreflect.Message
type ExportReply ¶ added in v0.3.0
type ExportReply struct { Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` ThreadKey string `protobuf:"bytes,2,opt,name=threadKey,proto3" json:"threadKey,omitempty"` // contains filtered or unexported fields }
func (*ExportReply) Descriptor
deprecated
added in
v0.3.0
func (*ExportReply) Descriptor() ([]byte, []int)
Deprecated: Use ExportReply.ProtoReflect.Descriptor instead.
func (*ExportReply) GetAddrs ¶ added in v0.3.0
func (x *ExportReply) GetAddrs() []string
func (*ExportReply) GetThreadKey ¶ added in v0.3.0
func (x *ExportReply) GetThreadKey() string
func (*ExportReply) ProtoMessage ¶ added in v0.3.0
func (*ExportReply) ProtoMessage()
func (*ExportReply) ProtoReflect ¶ added in v0.3.0
func (x *ExportReply) ProtoReflect() protoreflect.Message
func (*ExportReply) Reset ¶ added in v0.3.0
func (x *ExportReply) Reset()
func (*ExportReply) String ¶ added in v0.3.0
func (x *ExportReply) String() string
type ExportRequest ¶ added in v0.3.0
type ExportRequest struct {
// contains filtered or unexported fields
}
func (*ExportRequest) Descriptor
deprecated
added in
v0.3.0
func (*ExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.
func (*ExportRequest) ProtoMessage ¶ added in v0.3.0
func (*ExportRequest) ProtoMessage()
func (*ExportRequest) ProtoReflect ¶ added in v0.3.0
func (x *ExportRequest) ProtoReflect() protoreflect.Message
func (*ExportRequest) Reset ¶ added in v0.3.0
func (x *ExportRequest) Reset()
func (*ExportRequest) String ¶ added in v0.3.0
func (x *ExportRequest) String() string
type ListBackupsReply ¶
type ListBackupsReply struct { Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"` // contains filtered or unexported fields }
func (*ListBackupsReply) Descriptor
deprecated
func (*ListBackupsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsReply.ProtoReflect.Descriptor instead.
func (*ListBackupsReply) GetBackups ¶
func (x *ListBackupsReply) GetBackups() []*Backup
func (*ListBackupsReply) ProtoMessage ¶
func (*ListBackupsReply) ProtoMessage()
func (*ListBackupsReply) ProtoReflect ¶
func (x *ListBackupsReply) ProtoReflect() protoreflect.Message
func (*ListBackupsReply) Reset ¶
func (x *ListBackupsReply) Reset()
func (*ListBackupsReply) String ¶
func (x *ListBackupsReply) String() string
type ListBackupsRequest ¶
type ListBackupsRequest struct {
// contains filtered or unexported fields
}
func (*ListBackupsRequest) Descriptor
deprecated
func (*ListBackupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) ProtoMessage ¶
func (*ListBackupsRequest) ProtoMessage()
func (*ListBackupsRequest) ProtoReflect ¶
func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message
func (*ListBackupsRequest) Reset ¶
func (x *ListBackupsRequest) Reset()
func (*ListBackupsRequest) String ¶
func (x *ListBackupsRequest) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) AddBackup ¶
func (*UnimplementedAPIServer) AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error)
func (*UnimplementedAPIServer) Export ¶ added in v0.3.0
func (*UnimplementedAPIServer) Export(context.Context, *ExportRequest) (*ExportReply, error)
func (*UnimplementedAPIServer) ListBackups ¶
func (*UnimplementedAPIServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error)
func (*UnimplementedAPIServer) UpdateLatestBackup ¶
func (*UnimplementedAPIServer) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error)
type UpdateLatestBackupReply ¶
type UpdateLatestBackupReply struct { Backup *Backup `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty"` // contains filtered or unexported fields }
func (*UpdateLatestBackupReply) Descriptor
deprecated
func (*UpdateLatestBackupReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLatestBackupReply.ProtoReflect.Descriptor instead.
func (*UpdateLatestBackupReply) GetBackup ¶ added in v0.3.0
func (x *UpdateLatestBackupReply) GetBackup() *Backup
func (*UpdateLatestBackupReply) ProtoMessage ¶
func (*UpdateLatestBackupReply) ProtoMessage()
func (*UpdateLatestBackupReply) ProtoReflect ¶
func (x *UpdateLatestBackupReply) ProtoReflect() protoreflect.Message
func (*UpdateLatestBackupReply) Reset ¶
func (x *UpdateLatestBackupReply) Reset()
func (*UpdateLatestBackupReply) String ¶
func (x *UpdateLatestBackupReply) String() string
type UpdateLatestBackupRequest ¶
type UpdateLatestBackupRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` BackupCid string `protobuf:"bytes,2,opt,name=backupCid,proto3" json:"backupCid,omitempty"` // contains filtered or unexported fields }
func (*UpdateLatestBackupRequest) Descriptor
deprecated
func (*UpdateLatestBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLatestBackupRequest.ProtoReflect.Descriptor instead.
func (*UpdateLatestBackupRequest) GetBackupCid ¶ added in v0.3.0
func (x *UpdateLatestBackupRequest) GetBackupCid() string
func (*UpdateLatestBackupRequest) GetDeviceID ¶
func (x *UpdateLatestBackupRequest) GetDeviceID() string
func (*UpdateLatestBackupRequest) ProtoMessage ¶
func (*UpdateLatestBackupRequest) ProtoMessage()
func (*UpdateLatestBackupRequest) ProtoReflect ¶
func (x *UpdateLatestBackupRequest) ProtoReflect() protoreflect.Message
func (*UpdateLatestBackupRequest) Reset ¶
func (x *UpdateLatestBackupRequest) Reset()
func (*UpdateLatestBackupRequest) String ¶
func (x *UpdateLatestBackupRequest) String() string