inbound

package
v0.0.0-...-108e96f Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has() bool

Has is there any inbound configuration item

func IsModeEnabled

func IsModeEnabled(inboundType string) bool

IsModeEnabled is the special inbound mode enabled

func ModeEnable

func ModeEnable(inboundType string)

ModeEnable set inbound mode mask

Types

type Inbound

type Inbound struct {
	Type      string `json:"type"`
	Address   string `json:"address"`
	Parameter string `json:"parameter"`
	Port      int    `json:"port"`
}

type TCPInboundHandler

type TCPInboundHandler func(conn *net.TCPConn, outboundHandler common.TCPOutboundHandler) error

type UDPInboundHandler

type UDPInboundHandler func(conn net.PacketConn, outboundHandler common.UDPOutboundHandler) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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