Documentation ¶
Index ¶
- func GRPCCallWithBody[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, ...) func(ctx *fiber.Ctx) error
- func GRPCCallWithQueryParams[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, ...) func(ctx *fiber.Ctx) error
- func InitAndServe()
- func SendError(ctx *fiber.Ctx, err error) error
- type LoginBody
- type Options
- type WeStack
- func (app *WeStack) AsInterface() *wst.IApp
- func (app *WeStack) Boot(customRoutesCallbacks ...func(app *WeStack))
- func (app WeStack) FindDatasource(dsName string) (*datasource.Datasource, error)
- func (app *WeStack) FindModel(modelName string) (*model.Model, error)
- func (app WeStack) Middleware(handler fiber.Handler)
- func (app WeStack) Start() interface{}
- func (app WeStack) SwaggerPaths() *map[string]wst.M
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCCallWithBody ¶ added in v1.4.1
func GRPCCallWithQueryParams ¶ added in v1.4.1
func InitAndServe ¶ added in v1.3.6
func InitAndServe()
Types ¶
type WeStack ¶
type WeStack struct { ModelRegistry *map[string]*model.Model Datasources *map[string]*datasource.Datasource Server *fiber.App Debug bool RestApiRoot string Port int32 RoleModel *model.Model RoleMappingModel *model.Model DataSourceOptions *map[string]*datasource.Options JwtSecretKey []byte // contains filtered or unexported fields }
func (*WeStack) AsInterface ¶
func (WeStack) FindDatasource ¶ added in v1.2.94
func (app WeStack) FindDatasource(dsName string) (*datasource.Datasource, error)
func (WeStack) Middleware ¶ added in v1.3.6
func (app WeStack) Middleware(handler fiber.Handler)
Click to show internal directories.
Click to hide internal directories.