Documentation ¶
Index ¶
- Variables
- func ToEnvName(envtype, name string) string
- type Handle
- type Param
- type Params
- type Server
- func (s *Server) AddAppListener(listener ifaces.AppListener)
- func (s *Server) AddSpecialHandler(handler ifaces.SpecialHandler)
- func (s *Server) FireAfterAppUpdate(ctx context.Context, app *models.App) error
- func (s *Server) FireBeforeAppUpdate(ctx context.Context, app *models.App) error
- func (s *Server) Run(ctx context.Context)
- func (s *Server) UseSpecialHandlers(ginC *gin.Context) error
- type SpecialHandlerContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternalServerError = errors.New("Something unexpected happened on the server")
View Source
var Version = "0.1.11"
Version of IronFunctions
Functions ¶
Types ¶
type Server ¶
type Server struct { Runner *runner.Runner Router *gin.Engine Datastore models.Datastore MQ models.MessageQueue AppListeners []ifaces.AppListener SpecialHandlers []ifaces.SpecialHandler }
var Api *Server
Would be nice to not have this is a global, but hard to pass things around to the handlers in Gin without it.
func (*Server) AddAppListener ¶
func (s *Server) AddAppListener(listener ifaces.AppListener)
AddAppListener adds a listener that will be notified on App changes.
func (*Server) AddSpecialHandler ¶
func (s *Server) AddSpecialHandler(handler ifaces.SpecialHandler)
func (*Server) FireAfterAppUpdate ¶
func (*Server) FireBeforeAppUpdate ¶
type SpecialHandlerContext ¶
type SpecialHandlerContext struct {
// contains filtered or unexported fields
}
func (*SpecialHandlerContext) Datastore ¶
func (c *SpecialHandlerContext) Datastore() models.Datastore
func (*SpecialHandlerContext) Get ¶
func (c *SpecialHandlerContext) Get(key string) (value interface{}, exists bool)
func (*SpecialHandlerContext) Request ¶
func (c *SpecialHandlerContext) Request() *http.Request
func (*SpecialHandlerContext) Set ¶
func (c *SpecialHandlerContext) Set(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.