Documentation
¶
Index ¶
- type FallbackProxyServer
- type Inbound
- type InboundManager
- func (m *InboundManager) AddInbound(handler Inbound) error
- func (m *InboundManager) Close() error
- func (m *InboundManager) GetInbound(tag string) (Inbound, error)
- func (m *InboundManager) GetInbounds() []Inbound
- func (m *InboundManager) RemoveInbound(tag string) error
- func (m *InboundManager) Start() error
- type ProxyInbound
- type ProxyServer
- type UserManage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackProxyServer ¶
type FallbackProxyServer interface {
ProxyServer
// if okToFallback, it means all data (if any) that has been read from net.Conn is cached in cached and there
// is no write into the conn, therefore, okay to fallback. cached might be nil; err is the reason for not able to processs.
//
// if not okToFallback, then cached is nil, and err is same as Process()
FallbackProcess(context.Context, net.Conn) (okToFallback bool, cached buf.MultiBuffer, err error)
}
type Inbound ¶
type Inbound interface {
Tag() string
common.Runnable
UserManage
}
func NewInbound ¶
func NewInbound(config *configs.ProxyInboundConfig, ha i.Handler, tp i.TimeoutSetting) (Inbound, error)
type InboundManager ¶
type InboundManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *InboundManager
func (*InboundManager) AddInbound ¶
func (m *InboundManager) AddInbound(handler Inbound) error
func (*InboundManager) Close ¶
func (m *InboundManager) Close() error
func (*InboundManager) GetInbound ¶
func (m *InboundManager) GetInbound(tag string) (Inbound, error)
func (*InboundManager) GetInbounds ¶
func (m *InboundManager) GetInbounds() []Inbound
func (*InboundManager) RemoveInbound ¶
func (m *InboundManager) RemoveInbound(tag string) error
RemoveInbound implements inbound.Manager.
func (*InboundManager) Start ¶
func (m *InboundManager) Start() error
type ProxyInbound ¶
type ProxyInbound struct {
// contains filtered or unexported fields
}
implements i.InboundHandler
func (*ProxyInbound) AddUser ¶
func (h *ProxyInbound) AddUser(user i.User)
func (*ProxyInbound) RemoveUser ¶
func (h *ProxyInbound) RemoveUser(uid, secret string)
func (*ProxyInbound) Tag ¶
func (h *ProxyInbound) Tag() string
func (*ProxyInbound) WithOnUnauthorizedRequest ¶
func (h *ProxyInbound) WithOnUnauthorizedRequest(f i.UnauthorizedReport)
type ProxyServer ¶
type UserManage ¶
Click to show internal directories.
Click to hide internal directories.