server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:08 PM @ProjectName fileUpdater

@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:12 PM @ProjectName fileUpdater

@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:12 PM @ProjectName fileUpdater

@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:13 PM @ProjectName fileUpdater

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg core.ServerConfigs)

Types

type App added in v0.2.3

type App struct {
	Options core.ServerConfigs
	Engine  *gin.Engine
}

func (*App) Exec added in v0.2.3

func (a *App) Exec(c *gin.Context)

func (*App) GetContent added in v0.2.3

func (a *App) GetContent(c *gin.Context)

func (*App) GetUpdater added in v0.2.3

func (a *App) GetUpdater(c *gin.Context)

func (*App) GetUpdaters added in v0.2.3

func (a *App) GetUpdaters(c *gin.Context)

func (*App) Index added in v0.2.3

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

func (*App) UpdateFile added in v0.2.3

func (a *App) UpdateFile(c *gin.Context)

type Req

type Req struct {
	Name string `json:"name"`
}

type UpdateContentRequest

type UpdateContentRequest struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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