Documentation ¶
Index ¶
- func CreateProxyHttpClient(box *dunbox.Box) *http.Client
- func DialContext(ctx context.Context, box *dunbox.Box, network, addr string) (net.Conn, error)
- func DialUDP(ctx context.Context, box *dunbox.Box) (net.PacketConn, error)
- type SbStatsService
- func (s *SbStatsService) GetStats(ctx context.Context, name string, reset bool) (int64, error)
- func (s *SbStatsService) RoutedConnection(inbound string, outbound string, user string, conn net.Conn) net.Conn
- func (s *SbStatsService) RoutedConnectionInternal(inbound string, outbound string, user string, conn net.Conn, directIn bool) net.Conn
- func (s *SbStatsService) RoutedPacketConnection(inbound string, outbound string, user string, conn N.PacketConn) N.PacketConn
- type SbV2rayServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
Types ¶
type SbStatsService ¶
type SbStatsService struct {
// contains filtered or unexported fields
}
func NewSbStatsService ¶
func NewSbStatsService(options option.V2RayStatsServiceOptions) *SbStatsService
func (*SbStatsService) RoutedConnection ¶
func (*SbStatsService) RoutedConnectionInternal ¶
func (*SbStatsService) RoutedPacketConnection ¶
func (s *SbStatsService) RoutedPacketConnection(inbound string, outbound string, user string, conn N.PacketConn) N.PacketConn
type SbV2rayServer ¶
type SbV2rayServer struct {
// contains filtered or unexported fields
}
func NewSbV2rayServer ¶
func NewSbV2rayServer(options option.V2RayStatsServiceOptions) *SbV2rayServer
func (*SbV2rayServer) Close ¶
func (s *SbV2rayServer) Close() error
func (*SbV2rayServer) QueryStats ¶
func (s *SbV2rayServer) QueryStats(name string) int64
func (*SbV2rayServer) Start ¶
func (s *SbV2rayServer) Start() error
func (*SbV2rayServer) StatsService ¶
func (s *SbV2rayServer) StatsService() adapter.V2RayStatsService
Click to show internal directories.
Click to hide internal directories.