westack

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 17 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 WeStack

type WeStack struct {
	ModelRegistry *map[string]*model.Model
	Datasources   *map[string]*datasource.Datasource
	Server        *fiber.App
	Debug         bool
	RestApiRoot   string
	Port          int32
	// contains filtered or unexported fields
}

func New

func New(options WeStackOptions) *WeStack

func (*WeStack) AsInterface

func (app *WeStack) AsInterface() *common.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]map[string]interface{}

type WeStackOptions

type WeStackOptions struct {
	Debug       bool
	RestApiRoot string
	Port        int32
}

Directories

Path Synopsis
v2
lambdas Module

Jump to

Keyboard shortcuts

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