types

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseForwardRequest

type CloseForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	ProxyAddr string `json:"addr"`
	ProxyPort int    `json:"port"`
}

func NewCloseForwardRequestFromJSON

func NewCloseForwardRequestFromJSON(ctx context.Context, data jsonutils.JSONObject) (*CloseForwardRequest, error)

type CloseForwardResponse

type CloseForwardResponse struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	ProxyAddr string `json:"addr"`
	ProxyPort int    `json:"port"`
}

func (*CloseForwardResponse) JSON

type ListForwardRequest

type ListForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
}

func NewListForwardRequestFromJSON

func NewListForwardRequestFromJSON(ctx context.Context, data jsonutils.JSONObject) (*ListForwardRequest, error)

type ListForwardResponse

type ListForwardResponse struct {
	Forwards []OpenForwardResponse `json:"forwards"`
}

func (*ListForwardResponse) JSON

type OpenForwardRequest

type OpenForwardRequest struct {
	NetworkId string `json:"network_id"`
	Proto     string `json:"proto"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
}

func NewOpenForwardRequestFromJSON

func NewOpenForwardRequestFromJSON(ctx context.Context, data jsonutils.JSONObject) (*OpenForwardRequest, error)

type OpenForwardResponse

type OpenForwardResponse struct {
	Proto     string `json:"proto"`
	ProxyAddr string `json:"proxy_addr"`
	ProxyPort int    `json:"proxy_port"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
}

func (*OpenForwardResponse) JSON

Jump to

Keyboard shortcuts

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