Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddForward ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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.