westack

package
v1.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAndServe added in v1.3.6

func InitAndServe()

Types

type LoginBody

type LoginBody struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Options added in v1.2.71

type Options struct {
	RestApiRoot       string
	Port              int32
	JwtSecretKey      string
	DatasourceOptions *map[string]*datasource.Options
	// contains filtered or unexported fields
}

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 New

func New(options ...Options) *WeStack

func (*WeStack) AsInterface

func (app *WeStack) AsInterface() *wst.IApp

func (*WeStack) Boot

func (app *WeStack) Boot(customRoutesCallbacks ...func(app *WeStack))

func (WeStack) FindDatasource added in v1.2.94

func (app WeStack) FindDatasource(dsName string) (*datasource.Datasource, error)

func (*WeStack) FindModel

func (app *WeStack) FindModel(modelName string) (*model.Model, error)

func (WeStack) Middleware added in v1.3.6

func (app WeStack) Middleware(handler fiber.Handler)

func (WeStack) Start

func (app WeStack) Start() interface{}

func (WeStack) SwaggerPaths

func (app WeStack) SwaggerPaths() *map[string]wst.M

Directories

Path Synopsis
v2
lambdas Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL