Documentation
¶
Index ¶
- type Client
- type ClientConfig
- type Server
- func (h *Server) AddUser(user i.User)
- func (s *Server) FallbackProcess(ctx context.Context, conn net.Conn) (bool, buf.MultiBuffer, error)
- func (h *Server) GetUser(sha256 [32]byte) (string, error)
- func (d *Server) Network() []net.Network
- func (d *Server) Process(ctx context.Context, conn net.Conn) error
- func (h *Server) RemoveUser(uid, secret string)
- func (h *Server) WithOnUnauthorizedRequest(f i.UnauthorizedReport)
- type ServerSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ClientConfig
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ClientConfig) *Client
func (*Client) HandleFlow ¶
func (c *Client) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
func (*Client) HandlePacketConn ¶
func (c *Client) HandlePacketConn(ctx context.Context, dst net.Destination, rw udp.PacketReaderWriter) error
type ClientConfig ¶
type Server ¶
type Server struct {
ServerSettings
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(settings ServerSettings) *Server
func (*Server) FallbackProcess ¶
func (*Server) RemoveUser ¶
func (*Server) WithOnUnauthorizedRequest ¶
func (h *Server) WithOnUnauthorizedRequest(f i.UnauthorizedReport)
type ServerSettings ¶
Click to show internal directories.
Click to hide internal directories.