Documentation ¶
Index ¶
- func IsUnexpectedIfError(err error) bool
- func ReadProto(r io.Reader, m proto.Message) error
- func ReadString(r io.Reader) (string, error)
- func UnexpectedIfError(err error) error
- func WriteCommandType(w io.Writer, commandType CommandType) error
- func WriteInvalid(w io.Writer, err error) error
- func WriteOK(w io.Writer) error
- func WriteProto(w io.Writer, m proto.Message) error
- func WriteString(w io.Writer, str string) error
- type CommandType
- type Status
- type UnexpectedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUnexpectedIfError ¶
func UnexpectedIfError ¶
func WriteCommandType ¶
func WriteCommandType(w io.Writer, commandType CommandType) error
Types ¶
type CommandType ¶
type CommandType = int8
const ( CommandPing CommandType = iota CommandReset CommandList CommandOpen CommandUpload CommandUploadDirItem CommandTouch CommandUploadV2File CommandUploadV2Dir CommandUploadStart CommandUploadStartDir CommandUploadV3File CommandUploadEndDir CommandDownload CommandCat CommandBranchCheckout CommandBranchInfo CommandBranchList )
func ReadCommandType ¶
func ReadCommandType(r io.Reader) (commandType CommandType, err error)
type UnexpectedError ¶
type UnexpectedError struct {
Err error
}
func (*UnexpectedError) Error ¶
func (e *UnexpectedError) Error() string
Click to show internal directories.
Click to hide internal directories.