Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Maximum size for inline content (5MB) MAX_INLINE_SIZE = 5 * 1024 * 1024 // Maximum size for base64 encoding (1MB) MAX_BASE64_SIZE = 1 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileNode ¶
type FileNode struct {
Name string `json:"name"`
Path string `json:"path"`
Type string `json:"type"` // "file" or "directory"
Size int64 `json:"size,omitempty"`
Modified time.Time `json:"modified,omitempty"`
Children []*FileNode `json:"children,omitempty"`
}
FileNode represents a node in the file tree
type FilesystemServer ¶
type FilesystemServer struct {
// contains filtered or unexported fields
}
func NewFilesystemServer ¶
func NewFilesystemServer(allowedDirs []string) (*FilesystemServer, error)
func (*FilesystemServer) Serve ¶
func (s *FilesystemServer) Serve() error
Click to show internal directories.
Click to hide internal directories.