downfile

package module
v0.0.0-...-e81b4ff Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

downfile

A download file middleware for flygo

Usage


downFile := New().Dir("C:\\Users\\Administrator\\Desktop")
flygo.NewApp().Use(downFile).Run()

Documentation

Index

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

Jump to

Keyboard shortcuts

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