diff options
Diffstat (limited to 'ipn/backend.go')
| -rw-r--r-- | ipn/backend.go | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/ipn/backend.go b/ipn/backend.go index ad5dbd4bf..1cabc5788 100644 --- a/ipn/backend.go +++ b/ipn/backend.go @@ -6,10 +6,10 @@ package ipn import ( "fmt" "strings" - "time" "tailscale.com/ipn/ipnstate" "tailscale.com/tailcfg" + "tailscale.com/taildrop" "tailscale.com/types/empty" "tailscale.com/types/key" "tailscale.com/types/netmap" @@ -109,7 +109,7 @@ type Notify struct { // of being transferred. // // Deprecated: use LocalClient.AwaitWaitingFiles instead. - IncomingFiles []PartialFile `json:",omitempty"` + IncomingFiles []taildrop.PartialFile `json:",omitempty"` // LocalTCPPort, if non-nil, informs the UI frontend which // (non-zero) localhost TCP port it's listening on. @@ -164,24 +164,6 @@ func (n Notify) String() string { return s[0:len(s)-1] + "}" } -// PartialFile represents an in-progress file transfer. -type PartialFile struct { - Name string // e.g. "foo.jpg" - Started time.Time // time transfer started - DeclaredSize int64 // or -1 if unknown - Received int64 // bytes copied thus far - - // PartialPath is set non-empty in "direct" file mode to the - // in-progress '*.partial' file's path when the peerapi isn't - // being used; see LocalBackend.SetDirectFileRoot. - PartialPath string `json:",omitempty"` - - // Done is set in "direct" mode when the partial file has been - // closed and is ready for the caller to rename away the - // ".partial" suffix. - Done bool `json:",omitempty"` -} - // StateKey is an opaque identifier for a set of LocalBackend state // (preferences, private keys, etc.). It is also used as a key for // the various LoginProfiles that the instance may be signed into. |
