Documentation ¶
Index ¶
- func SendInit(code int, err error, writer io.Writer, stderr io.Writer)
- func SendProgress(oid string, bytesSoFar int64, bytesSinceLast int, writer io.Writer, ...)
- func SendResponse(r interface{}, writer io.Writer, stderr io.Writer) error
- func SendTransfer(oid string, code int, err error, path string, writer io.Writer, ...)
- type Error
- type Header
- type InitResponse
- type Message
- type ProgressResponse
- type Request
- type TransferResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendProgress ¶
func SendProgress(oid string, bytesSoFar int64, bytesSinceLast int, writer io.Writer, stderr io.Writer)
SendProgress reports progress on operations
func SendResponse ¶
SendResponse sends an actual response to lfs
Types ¶
type InitResponse ¶
type InitResponse struct {
Error *Error `json:"error,omitempty"`
}
InitResponse with response for init
type Message ¶
type Message struct { Event string `json:"event"` Oid string `json:"oid"` Size *int64 `json:"size,omitempty"` Path string `json:"path,omitempty"` Action string `json:"action,omitempty"` Error *Error `json:"error,omitempty"` }
Error struct
type ProgressResponse ¶
type ProgressResponse struct { Event string `json:"event"` Oid string `json:"oid"` BytesSoFar int64 `json:"bytesSoFar"` BytesSinceLast int `json:"bytesSinceLast"` }
ProgressResponse blah
type Request ¶
type Request struct { Event string `json:"event"` Operation string `json:"operation"` Concurrent bool `json:"concurrent"` ConcurrentTransfers int `json:"concurrenttransfers"` Oid string `json:"oid"` Size int64 `json:"size"` Path string `json:"path"` }
Request struct which can accept anything
Click to show internal directories.
Click to hide internal directories.