ft

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 17 Imported by: 0

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

Jump to

Keyboard shortcuts

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