Documentation
¶
Index ¶
Constants ¶
View Source
const (
Version = byte(0)
)
Variables ¶
View Source
var ( InvalidUser = errors.New("invalid user") InvalidVersion = errors.New("invalid version") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HandleFlow ¶
func (h *Client) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
Process implements proxy.Outbound.Process().
func (*Client) HandlePacketConn ¶
func (c *Client) HandlePacketConn(ctx context.Context, dst net.Destination, pc udp.PacketReaderWriter) error
TODO
func (*Client) WithServerPicker ¶
func (h *Client) WithServerPicker(p protocol.ServerPicker) *Client
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RemoveUser ¶
func (*Server) WithHandler ¶
func (*Server) WithTimeoutPolicy ¶
func (s *Server) WithTimeoutPolicy(policy i.TimeoutSetting)
Click to show internal directories.
Click to hide internal directories.