v2

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdapterContextGofiber

func AdapterContextGofiber(ctx interface{}) godd.InterfaceContext

AdapterContextGofiber Func

func AppAPIDocument

func AppAPIDocument() godd.InterfaceApp

AppAPIDocument Func

func AppMetricsPrometheus

func AppMetricsPrometheus(mainApp godd.InterfaceApp) godd.InterfaceApp

AppMetricsPrometheus Func

func NewApp

func NewApp() (godd.InterfaceApp, *fiber.App)

Types

type AppGofiber

type AppGofiber struct {
	// contains filtered or unexported fields
}

AppGofiber struct

func (*AppGofiber) App

func (app *AppGofiber) App() interface{}

GetFramework func

func (*AppGofiber) Get

func (app *AppGofiber) Get(path string, handlers ...godd.Handler) godd.InterfaceRouter

Get func

func (*AppGofiber) GetFramework

func (app *AppGofiber) GetFramework() godd.FrameWork

GetFramework func

func (*AppGofiber) GetFrameworkApp

func (app *AppGofiber) GetFrameworkApp() interface{}

GetFrameworkApp func

func (*AppGofiber) Group

func (app *AppGofiber) Group(path string, handlers ...godd.Handler) godd.InterfaceRouter

Group func

func (*AppGofiber) Listen

func (app *AppGofiber) Listen(port string) error

Listen func

func (*AppGofiber) Shutdown

func (app *AppGofiber) Shutdown() error

Shutdown func

type ContextGofiber

type ContextGofiber struct {
	Service           interface{}
	State             map[string]interface{}
	ServiceOptionList map[string]interface{}
	// contains filtered or unexported fields
}

ContextGofiber struct

func (*ContextGofiber) BodyParser

func (context *ContextGofiber) BodyParser(out interface{}) error

BodyParser func

func (*ContextGofiber) ClearCookie

func (context *ContextGofiber) ClearCookie(key ...string)

ClearCookie func

func (*ContextGofiber) GetBody

func (context *ContextGofiber) GetBody() []byte

GetBody func

func (*ContextGofiber) GetCookie

func (context *ContextGofiber) GetCookie(key string, val string)

GetCookie func

func (*ContextGofiber) GetFramework

func (context *ContextGofiber) GetFramework() godd.FrameWork

GetFramework func

func (*ContextGofiber) GetFrameworkContext

func (context *ContextGofiber) GetFrameworkContext() interface{}

GetFrameworkContext func

func (*ContextGofiber) GetHeader

func (context *ContextGofiber) GetHeader(key string, defaultValue ...string) string

GetHeader func

func (*ContextGofiber) GetI18N

func (context *ContextGofiber) GetI18N() *godd.I18N

GetI18N func

func (*ContextGofiber) GetLang

func (context *ContextGofiber) GetLang() string

GetLang func

func (*ContextGofiber) GetParam

func (context *ContextGofiber) GetParam(key string, defaultValue ...string) string

GetParam func

func (*ContextGofiber) GetQuery

func (context *ContextGofiber) GetQuery(key string, defaultValue ...string) string

GetQuery func

func (*ContextGofiber) GetService

func (context *ContextGofiber) GetService() interface{}

GetService func

func (*ContextGofiber) GetServiceOptionList

func (context *ContextGofiber) GetServiceOptionList(name string) interface{}

GetServiceOptionList func

func (*ContextGofiber) GetState

func (context *ContextGofiber) GetState(name string) interface{}

GetState func

func (*ContextGofiber) Log

func (context *ContextGofiber) Log(v ...interface{})

Log func

func (*ContextGofiber) QueryParser

func (context *ContextGofiber) QueryParser(out interface{}) error

QueryParser func

func (*ContextGofiber) Redirect

func (context *ContextGofiber) Redirect(location string, responseCode ...int) error

Redirect func

func (*ContextGofiber) Response

func (context *ContextGofiber) Response(responseDataList interface{}, responseCode ...int) error

Response func

func (*ContextGofiber) SetContentType

func (context *ContextGofiber) SetContentType(str string)

SetContentType func

func (*ContextGofiber) SetContext

func (context *ContextGofiber) SetContext(service interface{}, serviceOptionList map[string]interface{}, i18n *godd.I18N, state map[string]interface{})

SetContext func

func (*ContextGofiber) SetCookie

func (context *ContextGofiber) SetCookie(cookie interface{})

SetCookie func

func (*ContextGofiber) SetDefaultStruct

func (context *ContextGofiber) SetDefaultStruct(i interface{}) interface{}

SetDefaultStruct func

func (*ContextGofiber) SetHeader

func (context *ContextGofiber) SetHeader(key string, val string)

SetHeader func

func (*ContextGofiber) SetLang

func (context *ContextGofiber) SetLang(lang string)

SetLang func

func (*ContextGofiber) SetState

func (context *ContextGofiber) SetState(name string, value interface{})

SetState func

func (*ContextGofiber) ValidateStruct

func (context *ContextGofiber) ValidateStruct(i interface{}, iType map[string]interface{}) *godd.Error

ValidateStruct func

type RouterGofiber

type RouterGofiber struct {
	// contains filtered or unexported fields
}

RouterGofiber struct

func (*RouterGofiber) Add

func (router *RouterGofiber) Add(method string, path string, handlers ...func(ctx godd.InterfaceContext) error)

Add func

func (*RouterGofiber) Delete

func (router *RouterGofiber) Delete(path string, handlers ...func(ctx godd.InterfaceContext) error)

Delete func

func (*RouterGofiber) Get

func (router *RouterGofiber) Get(path string, handlers ...func(ctx godd.InterfaceContext) error)

Get func

func (*RouterGofiber) Patch

func (router *RouterGofiber) Patch(path string, handlers ...func(ctx godd.InterfaceContext) error)

Patch func

func (*RouterGofiber) Post

func (router *RouterGofiber) Post(path string, handlers ...func(ctx godd.InterfaceContext) error)

Post func

func (*RouterGofiber) Put

func (router *RouterGofiber) Put(path string, handlers ...func(ctx godd.InterfaceContext) error)

Put func

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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