Documentation
¶
Index ¶
- Constants
- func SetOperation(ctx context.Context, op string)
- type Server
- type ServerOption
- func WithAddress(addr string) ServerOption
- func WithChanReceiveTimeout(timeout time.Duration) ServerOption
- func WithCodec(c string) ServerOption
- func WithDebug(enable bool) ServerOption
- func WithHub(hub signalr.HubInterface) ServerOption
- func WithKeepAliveInterval(interval time.Duration) ServerOption
- func WithNetwork(network string) ServerOption
- func WithStreamBufferCapacity(capacity uint) ServerOption
- func WithTLSConfig(c *tls.Config) ServerOption
- type Transport
- func (tr *Transport) Endpoint() string
- func (tr *Transport) Kind() kratosTransport.Kind
- func (tr *Transport) Operation() string
- func (tr *Transport) PathTemplate() string
- func (tr *Transport) ReplyHeader() kratosTransport.Header
- func (tr *Transport) Request() *http.Request
- func (tr *Transport) RequestHeader() kratosTransport.Header
- type Transporter
Constants ¶
View Source
const (
KindSignalR kratosTransport.Kind = "signalr"
)
Variables ¶
This section is empty.
Functions ¶
func SetOperation ¶
SetOperation sets the transport operation.
Types ¶
type ServerOption ¶
type ServerOption func(o *Server)
func WithAddress ¶
func WithAddress(addr string) ServerOption
func WithChanReceiveTimeout ¶
func WithChanReceiveTimeout(timeout time.Duration) ServerOption
func WithCodec ¶
func WithCodec(c string) ServerOption
func WithDebug ¶
func WithDebug(enable bool) ServerOption
func WithHub ¶
func WithHub(hub signalr.HubInterface) ServerOption
func WithKeepAliveInterval ¶
func WithKeepAliveInterval(interval time.Duration) ServerOption
func WithNetwork ¶
func WithNetwork(network string) ServerOption
func WithStreamBufferCapacity ¶
func WithStreamBufferCapacity(capacity uint) ServerOption
func WithTLSConfig ¶
func WithTLSConfig(c *tls.Config) ServerOption
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a websocket transport.
func (*Transport) Kind ¶
func (tr *Transport) Kind() kratosTransport.Kind
Kind returns the transport kind.
func (*Transport) PathTemplate ¶
PathTemplate returns the http path template.
func (*Transport) ReplyHeader ¶
func (tr *Transport) ReplyHeader() kratosTransport.Header
ReplyHeader returns the reply header.
func (*Transport) RequestHeader ¶
func (tr *Transport) RequestHeader() kratosTransport.Header
RequestHeader returns the request header.
type Transporter ¶
type Transporter interface { kratosTransport.Transporter Request() *http.Request PathTemplate() string }
Click to show internal directories.
Click to hide internal directories.