westack

package
v1.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 28 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCCallWithBody added in v1.4.1

func GRPCCallWithBody[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, clientConstructor func(cc grpc.ClientConnInterface) ClientT, clientMethod func(ClientT, context.Context, *InputT, ...grpc.CallOption) (OutputT, error)) func(ctx *fiber.Ctx) error

func GRPCCallWithQueryParams added in v1.4.1

func GRPCCallWithQueryParams[InputT any, ClientT interface{}, OutputT proto.Message](serviceUrl string, clientConstructor func(cc grpc.ClientConnInterface) ClientT, clientMethod func(ClientT, context.Context, *InputT, ...grpc.CallOption) (OutputT, error)) func(ctx *fiber.Ctx) error

func InitAndServe added in v1.3.6

func InitAndServe()

func SendError added in v1.4.1

func SendError(ctx *fiber.Ctx, err error) error

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 {
	Server *fiber.App
	// contains filtered or unexported fields
}

func New

func New(options ...Options) *WeStack

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