Documentation
¶
Index ¶
- Variables
- func Listen(ctx context.Context, addr net.Destination, config *HttpUpgradeConfig, ...) (*server, error)
- func NewHttpUpgradeDialer(config *HttpUpgradeConfig, engine security.Engine, socketSetting i.Dialer) *httpupgradeDialer
- type HttpUpgradeConfig
- func (*HttpUpgradeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HttpUpgradeConfig) GetConfig() *websocket.WebsocketConfig
- func (c *HttpUpgradeConfig) GetNormalizedPath() string
- func (*HttpUpgradeConfig) ProtoMessage()
- func (x *HttpUpgradeConfig) ProtoReflect() protoreflect.Message
- func (x *HttpUpgradeConfig) Reset()
- func (x *HttpUpgradeConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_protocols_httpupgrade_config_proto protoreflect.FileDescriptor
Functions ¶
func Listen ¶
func Listen(ctx context.Context, addr net.Destination, config *HttpUpgradeConfig, li i.Listener, ch func(net.Conn)) (*server, error)
func NewHttpUpgradeDialer ¶
func NewHttpUpgradeDialer(config *HttpUpgradeConfig, engine security.Engine, socketSetting i.Dialer) *httpupgradeDialer
Types ¶
type HttpUpgradeConfig ¶
type HttpUpgradeConfig struct {
Config *websocket.WebsocketConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*HttpUpgradeConfig) Descriptor
deprecated
func (*HttpUpgradeConfig) Descriptor() ([]byte, []int)
Deprecated: Use HttpUpgradeConfig.ProtoReflect.Descriptor instead.
func (*HttpUpgradeConfig) GetConfig ¶
func (x *HttpUpgradeConfig) GetConfig() *websocket.WebsocketConfig
func (*HttpUpgradeConfig) GetNormalizedPath ¶
func (c *HttpUpgradeConfig) GetNormalizedPath() string
func (*HttpUpgradeConfig) ProtoMessage ¶
func (*HttpUpgradeConfig) ProtoMessage()
func (*HttpUpgradeConfig) ProtoReflect ¶
func (x *HttpUpgradeConfig) ProtoReflect() protoreflect.Message
func (*HttpUpgradeConfig) Reset ¶
func (x *HttpUpgradeConfig) Reset()
func (*HttpUpgradeConfig) String ¶
func (x *HttpUpgradeConfig) String() string
Click to show internal directories.
Click to hide internal directories.