README ¶ downfile A download file middleware for flygo Usage downFile := New().Dir("C:\\Users\\Administrator\\Desktop") flygo.NewApp().Use(downFile).Run() Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type DownFile func New() *DownFile func (df *DownFile) DateDir(dateDir bool) *DownFile func (df *DownFile) Dir(dir string) *DownFile func (df *DownFile) Fields() []*flygo.Field func (*DownFile) Method() string func (*DownFile) Name() string func (*DownFile) Pattern() string func (df *DownFile) Process() flygo.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DownFile ¶ type DownFile struct { // contains filtered or unexported fields } Define DownFile struct func New ¶ func New() *DownFile Return new DownFile func (*DownFile) DateDir ¶ func (df *DownFile) DateDir(dateDir bool) *DownFile Set middleware dateDir func (*DownFile) Dir ¶ func (df *DownFile) Dir(dir string) *DownFile Set middleware dir func (*DownFile) Fields ¶ func (df *DownFile) Fields() []*flygo.Field Set middleware fields func (*DownFile) Method ¶ func (*DownFile) Method() string Set middleware global method func (*DownFile) Name ¶ func (*DownFile) Name() string Set middleware name func (*DownFile) Pattern ¶ func (*DownFile) Pattern() string Set middleware global pattern func (*DownFile) Process ¶ func (df *DownFile) Process() flygo.Handler Set middleware process Source Files ¶ View all Source files downfile.go Click to show internal directories. Click to hide internal directories.