dashboard

package
v0.0.0-...-406c194 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const ConstCookieName = "metasdns_cookie"
View Source
const EventSuperviseStatus = "EventSuperviseStatus"
View Source
const UserSession = "metasdns_user_session"
View Source
const UserSessionLevel = "metasdns_user_session_level"
View Source
const UserSessionName = "metasdns_user_session_name"

Variables

View Source
var Drive wfs.Drive

Functions

func Copy

func Copy(c echo.Context) error

拷贝文件

func Delete

func Delete(c echo.Context) error

func Direct

func Direct(c echo.Context) error

直接访问

func Files

func Files(c echo.Context) error

文件列表

func Folders

func Folders(c echo.Context) error

文件夹列表 非管理员过滤private目录

func GetDataJson

func GetDataJson(c echo.Context) error

GetDataJson 获取json数据, 如果文件不存在就创建一个空的

func GetInfo

func GetInfo(c echo.Context) error

GetInfo 文件信息

func GetMetaInfo

func GetMetaInfo(c echo.Context) error

func GetText

func GetText(c echo.Context) error

读取文本文件

func IconGet

func IconGet(c echo.Context) error

func MakeDir

func MakeDir(c echo.Context) error

创建目录

func MakeFile

func MakeFile(c echo.Context) error

创建新文件

func MarkdownRender

func MarkdownRender(c echo.Context) error

读取文本文件

func Move

func Move(c echo.Context) error

移动文件

func PostText

func PostText(c echo.Context) error

写入文本

func Rename

func Rename(c echo.Context) error

重命名文件

func Search(c echo.Context) error

文件搜索

func ServerRecover

func ServerRecover(debug bool) echo.MiddlewareFunc

ServerRecover Web 服务恢复处理中间件

func Upload

func Upload(c echo.Context) error

上传文件

Types

type Dashboard

type Dashboard struct {
	Next plugin.Handler
	// contains filtered or unexported fields
}

func NewDashboard

func NewDashboard() *Dashboard

func (*Dashboard) Name

func (d *Dashboard) Name() string

func (*Dashboard) OnShutdown

func (d *Dashboard) OnShutdown() error

func (*Dashboard) OnStartup

func (d *Dashboard) OnStartup() error

func (*Dashboard) ServeDNS

func (d *Dashboard) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

type FSFeatures

type FSFeatures struct {
	Preview map[string]bool `json:"preview"`
	Meta    map[string]bool `json:"meta"`
}

type FSInfo

type FSInfo struct {
	Stats    FSStats    `json:"stats"`
	Features FSFeatures `json:"features"`
}

type FSStats

type FSStats struct {
	Free  uint64 `json:"free"`
	Total uint64 `json:"total"`
	Used  uint64 `json:"used"`
}

type MusicMeta

type MusicMeta struct {
	Title  string
	Artist string
	Album  string
	Year   string
	Genre  string
}

type Response

type Response struct {
	Invalid bool   `json:"invalid"`
	Error   string `json:"error"`
	ID      string `json:"id"`
}

type Skips

type Skips struct {
	Paths   []string `json:"paths"`
	Prefixs []string `json:"prefixs"`
	Suffixs []string `json:"suffixs"`
}

type SubMatcher

type SubMatcher struct {
	Id           string `json:"id" form:"id"`
	Enabled      int    `json:"enabled" form:"enabled"`
	Upstreams    string `json:"upstreams,omitempty" form:"upstreams"`
	Name         string `json:"name,omitempty" form:"name"`
	To           string `json:"to,omitempty" form:"to"`
	ClientIps    string `json:"client_ips,omitempty" form:"client_ips"`
	AnwserIps    string `json:"anwser_ips,omitempty" form:"anwser_ips"`
	QueryNames   string `json:"query_names,omitempty" form:"query_names"`
	AnwserCNames string `json:"anwser_cnames,omitempty" form:"anwser_cnames"`
	ForceEcs     string `json:"force_ecs,omitempty" form:"force_ecs"`
	Notify       string `json:"notify,omitempty" form:"notify"`
	Nxdomain     int    `json:"nxdomain" form:"nxdomain"`
	Ipset        string `json:"ipset,omitempty" form:"ipset"`
}

func (SubMatcher) CheckDuplicate

func (m SubMatcher) CheckDuplicate(m2 SubMatcher) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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