web

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(addr string) error

Start runs the iris server on the given address.

Types

type AnalyzeRequest

type AnalyzeRequest struct {
	Paths          []string `json:"paths"`
	UploadID       string   `json:"uploadId"`
	ByFile         bool     `json:"byFile"`
	Sort           string   `json:"sort"`
	ExcludeExt     string   `json:"excludeExt"`
	ExcludeLang    string   `json:"excludeLang"`
	IncludeLang    string   `json:"includeLang"`
	Match          string   `json:"match"`
	NotMatch       string   `json:"notMatch"`
	MatchDir       string   `json:"matchDir"`
	NotMatchDir    string   `json:"notMatchDir"`
	Debug          bool     `json:"debug"`
	SkipDuplicated bool     `json:"skipDuplicated"`
}

AnalyzeRequest defines the parameters accepted by the analyze endpoint.

type FileNode

type FileNode struct {
	Name     string     `json:"name"`
	Path     string     `json:"path"`
	IsDir    bool       `json:"is_dir"`
	Children []FileNode `json:"children,omitempty"`
}

type UploadResponse

type UploadResponse struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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