proxy

package
v0.0.0-...-1b41cfb Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostList

func HostList() *[]model.ProxyHost

func List

func List() *[]model.Proxy

Types

type HostRegisterService

type HostRegisterService struct {
	URLScheme string `form:"scheme" json:"scheme" binding:"required,min=1,max=30"`
	URLHost   string `form:"host" json:"host" binding:"required,min=1,max=30"`
	URLPath   string `form:"path" json:"path" binding:"required,min=1,max=30"`
}

HostRegisterService 路由主机注册服务

func (*HostRegisterService) Register

func (service *HostRegisterService) Register() *serializer.Response

Register 注册路由

type RegisterService

type RegisterService struct {
	Path   string `form:"path" json:"path" binding:"required,min=1,max=30"`
	Method string `form:"method" json:"method" binding:"required,min=1,max=30"`
	HostID int    `form:"hostId" json:"hostId" binding:"required"`
}

RegisterService 路由注册服务

func (*RegisterService) Register

func (service *RegisterService) Register() *serializer.Response

Register 注册路由

Jump to

Keyboard shortcuts

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