Documentation ¶
Index ¶
- Constants
- func GenerateId() string
- func ShiftPath(p string) (head, tail string)
- type App
- func (app *App) CheckHeaderToken(r *http.Request) (err error)
- func (app *App) GetPort() string
- func (app *App) ServeAPI(w http.ResponseWriter, r *http.Request)
- func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (app *App) ValidateToken(tokenString string) (userClaim Claims, err error)
- type Claims
- type Config
Constants ¶
View Source
const CConfigPath = "etc/sfs/app.conf"
View Source
const CDefaultFilename = "file.dat"
View Source
const CInfoFilename = "fileinfo.json"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
LoadedConfig Config
}
App - main application
Click to show internal directories.
Click to hide internal directories.