Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHeadersCrossOrigin ¶
func New ¶
func New(appConf *AppConfig, swaggerConf *SwaggerConf, ctx context.Context) rest.IApplication
Types ¶
type AppConfig ¶
type AppConfig struct { SSL bool Addr string Http bool Websocket bool Secret []byte HttpPrefix string WebsocketPrefix string HTTPHeaders func() map[string]string Commands func(string) (rest.IExecuter, bool) TLSKeyPath string TLSCertPath string Core any OnSocketConnect func(rest.IStream) OnSocketDisconnect func(rest.IStream) }
func (*AppConfig) GetCommandsMethod ¶ added in v1.12.0
func (*AppConfig) GetHTTPHeaders ¶
func (*AppConfig) GetHttpPrefix ¶
func (*AppConfig) GetWebsocketPrefix ¶
type Application ¶
type Application struct { *Sockets // contains filtered or unexported fields }
func (*Application) Executer ¶
func (s *Application) Executer(r rest.IRequestIn) (rest.IExecuter, bool)
func (*Application) Stop ¶
func (s *Application) Stop()
type Sockets ¶ added in v1.18.0
type Sockets struct {
// contains filtered or unexported fields
}
func NewSockets ¶ added in v1.18.0
func NewSockets() *Sockets
func (*Sockets) ClientAuth ¶ added in v1.18.0
func (*Sockets) ClientExists ¶ added in v1.18.0
func (*Sockets) OnlineCount ¶ added in v1.18.0
func (*Sockets) SendMessage ¶ added in v1.18.0
func (s *Sockets) SendMessage(id any, message rest.IRequestOut)
type StreamStore ¶ added in v1.18.0
type StreamStore struct {
// contains filtered or unexported fields
}
func NewStreamStore ¶ added in v1.18.0
func NewStreamStore(stream rest.IStream) *StreamStore
func (*StreamStore) SendMessage ¶ added in v1.18.0
func (s *StreamStore) SendMessage(message rest.IRequestOut)
func (*StreamStore) Size ¶ added in v1.18.0
func (s *StreamStore) Size() int
type Swagger ¶
type Swagger struct {
// contains filtered or unexported fields
}
func NewSwagger ¶
func NewSwagger(conf *SwaggerConf) *Swagger
Click to show internal directories.
Click to hide internal directories.