github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/inbound/hysteria_stub.go (about) 1 //go:build !with_quic 2 3 package inbound 4 5 import ( 6 "context" 7 8 "github.com/inazumav/sing-box/adapter" 9 C "github.com/inazumav/sing-box/constant" 10 "github.com/inazumav/sing-box/log" 11 "github.com/inazumav/sing-box/option" 12 ) 13 14 func NewHysteria(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.HysteriaInboundOptions) (adapter.Inbound, error) { 15 return nil, C.ErrQUICNotIncluded 16 } 17 18 type Hysteria struct { 19 adapter.Inbound 20 } 21 22 func (h *Hysteria) Start() error { 23 return C.ErrQUICNotIncluded 24 } 25 26 func (h *Hysteria) AddUsers(_ []option.HysteriaUser) error { 27 return C.ErrQUICNotIncluded 28 } 29 30 func (h *Hysteria) DelUsers(_ []string) error { 31 return C.ErrQUICNotIncluded 32 } 33 34 func NewHysteria2(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.Hysteria2InboundOptions) (adapter.Inbound, error) { 35 return nil, C.ErrQUICNotIncluded 36 }