api_pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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

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

Deprecated: Use Backup.ProtoReflect.Descriptor instead.

func (*Backup) GetBackupCid added in v0.3.0

func (x *Backup) GetBackupCid() string

func (*Backup) GetDeviceID added in v0.3.0

func (x *Backup) GetDeviceID() string

func (*Backup) GetUpdatedAt added in v0.3.0

func (x *Backup) GetUpdatedAt() *timestamp.Timestamp

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

func (*Backup) Reset added in v0.3.0

func (x *Backup) Reset()

func (*Backup) String added in v0.3.0

func (x *Backup) String() string

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) Export added in v0.3.0

func (*UnimplementedAPIServer) ListBackups

func (*UnimplementedAPIServer) UpdateLatestBackup

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 (*UpdateLatestBackupRequest) Reset

func (x *UpdateLatestBackupRequest) Reset()

func (*UpdateLatestBackupRequest) String

func (x *UpdateLatestBackupRequest) String() string

Jump to

Keyboard shortcuts

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