westack

package
v1.2.46 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 21 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOwnerFunc added in v1.2.44

func IsOwnerFunc(args ...interface{}) (interface{}, error)

Types

type LoginBody

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

type WeStack

type WeStack struct {
	ModelRegistry *map[string]*model.Model
	Datasources   *map[string]*datasource.Datasource
	Server        *fiber.App
	Debug         bool
	RestApiRoot   string
	Port          int32

	JwtSecretKey []byte
	// contains filtered or unexported fields
}

func New

func New(options WeStackOptions) *WeStack

func (*WeStack) AsInterface

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

func (*WeStack) Boot

func (app *WeStack) Boot(customRoutesCallback func(app *WeStack))

func (*WeStack) FindModel

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

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

type WeStackOptions

type WeStackOptions struct {
	Debug        bool
	RestApiRoot  string
	Port         int32
	JwtSecretKey []byte
}

Directories

Path Synopsis
v2
lambdas Module

Jump to

Keyboard shortcuts

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