api

package
v0.0.0-...-cfa2258 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListDir

func ListDir(dirPath, fileExt string) []models.LogFile

func ListLogs

func ListLogs() []models.LogFile

Types

type App

type App struct {
	DB           *gorm.DB
	Name         string
	Port         string
	Folders      []string
	SocketServer *io.Server
}

func (*App) IOServer

func (app *App) IOServer()

func (*App) Index

func (app *App) Index(c *gin.Context)

func (*App) ListFolders

func (app *App) ListFolders(c *gin.Context)

func (*App) Login

func (app *App) Login()

func (*App) ReadLog

func (app *App) ReadLog(c *gin.Context)

func (*App) RequestJWT

func (app *App) RequestJWT() (res map[string]interface{}, err error)

Jump to

Keyboard shortcuts

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