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) GetHTTPHeaders ¶
func (*AppConfig) GetHttpPrefix ¶
func (*AppConfig) GetWebsocketPrefix ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) Connect ¶
func (s *Application) Connect() chan<- rest.IStream
func (*Application) Executer ¶
func (s *Application) Executer(r rest.IRequestIn) (rest.IExecuter, bool)
func (*Application) Stop ¶
func (s *Application) Stop()
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.