MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / LoadBaseInfo

Method LoadBaseInfo

agent/app/service/ftp.go:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (f *FtpService) LoadBaseInfo() (dto.FtpBaseInfo, error) {
36 var baseInfo dto.FtpBaseInfo
37 client, err := toolbox.NewFtpClient()
38 if err != nil {
39 return baseInfo, err
40 }
41 baseInfo.IsActive, baseInfo.IsExist = client.Status()
42 return baseInfo, nil
43}
44
45func (f *FtpService) LoadLog(req dto.FtpLogSearch) (int64, interface{}, error) {
46 client, err := toolbox.NewFtpClient()

Callers

nothing calls this directly

Calls 1

StatusMethod · 0.95

Tested by

no test coverage detected