Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + liberr.MinPkgStatic ErrorFileInfo ErrorFileOpen ErrorFiletemp ErrorFileNotFound )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Static ¶
type Static interface { RegisterRouter(route string, register librtr.RegisterRouter, router ...ginsdk.HandlerFunc) RegisterRouterInGroup(route, group string, register librtr.RegisterRouterInGroup, router ...ginsdk.HandlerFunc) RegisterLogger(log func() liblog.Logger) SetDownload(pathFile string, flag bool) SetIndex(group, route, pathFile string) GetIndex(group, route string) string SetRedirect(srcGroup, srcRoute, dstGroup, dstRoute string) GetRedirect(srcGroup, srcRoute string) string SetSpecific(group, route string, router ginsdk.HandlerFunc) GetSpecific(group, route string) ginsdk.HandlerFunc IsDownload(pathFile string) bool IsIndex(pathFile string) bool IsIndexForRoute(pathFile, group, route string) bool IsRedirect(group, route string) bool Has(pathFile string) bool List(rootPath string) ([]string, liberr.Error) Find(pathFile string) (io.ReadCloser, liberr.Error) Info(pathFile string) (os.FileInfo, liberr.Error) Temp(pathFile string) (libiot.FileProgress, liberr.Error) Map(func(pathFile string, inf os.FileInfo) error) liberr.Error UseTempForFileSize(size int64) Monitor(ctx libctx.FuncContext, cfg montps.Config, vrs libver.Version) (montps.Monitor, error) Get(c *ginsdk.Context) SendFile(c *ginsdk.Context, filename string, size int64, isDownload bool, buf io.ReadCloser) }
Click to show internal directories.
Click to hide internal directories.