Documentation ¶
Index ¶
Constants ¶
View Source
const McfsDefault = "/mcfs/data/materialscommons"
Variables ¶
View Source
var ErrAlreadyAuthenticated = errors.New("already authenticated")
View Source
var ErrBadProtocolSequence = errors.New("bad protocol sequence")
View Source
var ErrNotAuthenticated = errors.New("not authenticated")
Functions ¶
func Error2Status ¶
func Error2Status(err error) protocol.StatusResponse
func GetMCFSRoot ¶
func GetMCFSRoot() string
Types ¶
type FileTransferHandler ¶
type FileTransferHandler struct { Project *mcmodel.Project User mcmodel.User File *mcmodel.File // contains filtered or unexported fields }
func NewFileTransferHandler ¶
func NewFileTransferHandler(ws *websocket.Conn, db *gorm.DB) *FileTransferHandler
func (*FileTransferHandler) CreateDirectoryAll ¶
func (h *FileTransferHandler) CreateDirectoryAll(dir string) (*mcmodel.File, error)
func (*FileTransferHandler) Run ¶
func (h *FileTransferHandler) Run() error
Click to show internal directories.
Click to hide internal directories.