felipejfc/udpx

View on GitHub
api/proxy.go

Summary

Maintainability
A
45 mins
Test Coverage

Function NewProxyHandler has 7 return statements (exceeds 4 allowed).
Open

func NewProxyHandler(c echo.Context) error {
    p := new(proxy.ProxyInstance)
    pm := proxy.GetManager()
    if err := c.Bind(p); err != nil {
        return err
Severity: Major
Found in api/proxy.go - About 45 mins to fix

    exported function NewProxyHandler should have comment or be unexported
    Open

    func NewProxyHandler(c echo.Context) error {
    Severity: Minor
    Found in api/proxy.go by golint

    exported function UnregisterProxyByPortHandler should have comment or be unexported
    Open

    func UnregisterProxyByPortHandler(c echo.Context) error {
    Severity: Minor
    Found in api/proxy.go by golint

    exported function GetProxyByBindPortHandler should have comment or be unexported
    Open

    func GetProxyByBindPortHandler(c echo.Context) error {
    Severity: Minor
    Found in api/proxy.go by golint

    There are no issues that match your filters.

    Category
    Status