westack

package
v1.2.99 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	// 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

	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(customRoutesCallback 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) Listen deprecated

func (app WeStack) Listen(addr string) interface{}

Listen is an alias for Start()

Deprecated: Start() should be used instead

func (WeStack) Start

func (app WeStack) Start(addr string) 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