Documentation
¶
Index ¶
- type AuthorizeConnectionService
- type Closer
- type Connection
- type ConnectionAuthorizer
- type ConnectionService
- type CreateConnectionInput
- type CreateConnectionOutput
- type DialOptions
- type Dialer
- type GenerateSubprotocolService
- type Reader
- type Runtime
- type Serializer
- type SubprotocolGenerator
- type Transport
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeConnectionService ¶
type AuthorizeConnectionService struct {
// contains filtered or unexported fields
}
func NewAuthorizeConnectionService ¶
func NewAuthorizeConnectionService(codec app.Decoder, authorizer app.RequestAuthorizer, logger app.Logger) *AuthorizeConnectionService
func (*AuthorizeConnectionService) Authorize ¶
func (session *AuthorizeConnectionService) Authorize(ctx context.Context, connection Connection) (time.Duration, error)
type Connection ¶
type ConnectionAuthorizer ¶
type ConnectionService ¶
type ConnectionService struct {
// contains filtered or unexported fields
}
func NewConnectionService ¶
func NewConnectionService(dialer Dialer, connection_authorizer ConnectionAuthorizer, subprotocol_generator SubprotocolGenerator, logger app.Logger) *ConnectionService
func (*ConnectionService) Connect ¶
func (service *ConnectionService) Connect(ctx context.Context, input CreateConnectionInput) (*CreateConnectionOutput, error)
type CreateConnectionInput ¶
type CreateConnectionOutput ¶
type CreateConnectionOutput struct {
Connection Connection
Timeout time.Duration
}
type DialOptions ¶
type Dialer ¶
type Dialer interface {
Dial(context.Context, DialOptions) (Connection, error)
}
type GenerateSubprotocolService ¶
type GenerateSubprotocolService struct {
// contains filtered or unexported fields
}
func NewGenerateSubprotocolService ¶
func NewGenerateSubprotocolService(authorizer app.RequestAuthorizer, serializer Serializer) *GenerateSubprotocolService
type SubprotocolGenerator ¶
Click to show internal directories.
Click to hide internal directories.