Documentation ¶
Index ¶
- func GRPCCallWithBody[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, clientConstructor func(cc grpc.ClientConnInterface) ClientT, ...) func(ctx *fiber.Ctx) error
- func GRPCCallWithQueryParams[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, clientConstructor func(cc grpc.ClientConnInterface) ClientT, ...) func(ctx *fiber.Ctx) error
- func InitAndServe()
- func SendError(ctx *fiber.Ctx, err error) error
- func UpsertUserWithRoles(app *WeStack, userToUpsert UserWithRoles, eventContext *model.EventContext) (user *model.Instance, err error)
- type LoginBody
- type Options
- type UserWithRoles
- type WeStack
- 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) FindModelsWithClass(modelClass string) (foundModels []*model.Model)
- func (app *WeStack) Middleware(handler fiber.Handler)
- func (app *WeStack) Start() error
- func (app *WeStack) Stop() error
- 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()
func UpsertUserWithRoles ¶ added in v1.5.48
func UpsertUserWithRoles(app *WeStack, userToUpsert UserWithRoles, eventContext *model.EventContext) (user *model.Instance, err error)
Types ¶
type UserWithRoles ¶ added in v1.5.48
type WeStack ¶
type WeStack struct { Server *fiber.App Viper *viper.Viper DsViper *viper.Viper Options Options Bson wst.BsonOptions // contains filtered or unexported fields }
func (*WeStack) FindDatasource ¶ added in v1.2.94
func (app *WeStack) FindDatasource(dsName string) (*datasource.Datasource, error)
func (*WeStack) FindModelsWithClass ¶ added in v1.5.48
func (*WeStack) Middleware ¶ added in v1.3.6
Source Files ¶
Click to show internal directories.
Click to hide internal directories.