github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/transport/internet/httpupgrade/httpupgrade.go (about) 1 package httpupgrade 2 3 import ( 4 "context" 5 6 "github.com/xmplusdev/xmcore/common" 7 ) 8 9 //go:generate go run github.com/xmplusdev/xmcore/common/errors/errorgen 10 11 const protocolName = "httpupgrade" 12 13 func init() { 14 common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { 15 return nil, newError("httpupgrade is a transport protocol.") 16 })) 17 }