controller

package
v0.0.0-...-0c53637 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddForward

func AddForward(c *gin.Context)

@Summary add a forward and start it @Description "" @Tags froward @Accept json @Produce json @Param json body dto.AddForward true "请求json" @Success 200 {object} resp.DataResp{} @Router /v1/forward/ [post]

func DeleteForward

func DeleteForward(c *gin.Context)

@Summary delete forward by id @Description "" @Tags froward @Accept json @Produce json @Param id path string true "id" @Success 200 {object} resp.DataResp{} @Router /v1/forward/{id}/delete [post]

func GetForwardById

func GetForwardById(c *gin.Context)

@Summary get froward detail by id @Description "" @Tags froward @Accept json @Produce json @Param id path string true "id" @Success 200 {object} resp.DataResp{data=dto.ForwardDetail} @Router /v1/forward/{id} [get]

func GetForwardList

func GetForwardList(c *gin.Context)

@Summary get forward list @Description "" @Tags froward @Accept json @Produce json @Param page_num query string false "页码,默认1" @Param page_size query string false "页面大小,默认20" @Param status query int false "status" @Success 200 {object} resp.DataResp{data=dto.ForwardList} @Router /v1/forward/ [get]

func GetNetworkInterfaces

func GetNetworkInterfaces(c *gin.Context)

@Summary get network interface list @Description "" @Tags network @Produce json @Success 200 {object} resp.DataResp{data=[]dto.NetworkInterface} @Router /v1/network/interfaces [get]

func StartForward

func StartForward(c *gin.Context)

@Summary start forward by id @Description "" @Tags froward @Accept json @Produce json @Param id path string true "id" @Success 200 {object} resp.DataResp{} @Router /v1/forward/{id}/start [post]

func StopForward

func StopForward(c *gin.Context)

@Summary stop forward by id @Description "" @Tags froward @Accept json @Produce json @Param id path string true "id" @Success 200 {object} resp.DataResp{} @Router /v1/forward/{id}/stop [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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