Documentation ¶
Index ¶
- func AdapterContextGofiber(ctx interface{}) godd.InterfaceContext
- func AppAPIDocument() godd.InterfaceApp
- func AppMetricsPrometheus(mainApp godd.InterfaceApp) godd.InterfaceApp
- func NewApp() (godd.InterfaceApp, *fiber.App)
- type AppGofiber
- func (app *AppGofiber) App() interface{}
- func (app *AppGofiber) Get(path string, handlers ...godd.Handler) godd.InterfaceRouter
- func (app *AppGofiber) GetFramework() godd.FrameWork
- func (app *AppGofiber) GetFrameworkApp() interface{}
- func (app *AppGofiber) Group(path string, handlers ...godd.Handler) godd.InterfaceRouter
- func (app *AppGofiber) Listen(port string) error
- func (app *AppGofiber) Shutdown() error
- type ContextGofiber
- func (context *ContextGofiber) BodyParser(out interface{}) error
- func (context *ContextGofiber) ClearCookie(key ...string)
- func (context *ContextGofiber) GetBody() []byte
- func (context *ContextGofiber) GetCookie(key string, val string)
- func (context *ContextGofiber) GetFramework() godd.FrameWork
- func (context *ContextGofiber) GetFrameworkContext() interface{}
- func (context *ContextGofiber) GetHeader(key string, defaultValue ...string) string
- func (context *ContextGofiber) GetI18N() *godd.I18N
- func (context *ContextGofiber) GetLang() string
- func (context *ContextGofiber) GetParam(key string, defaultValue ...string) string
- func (context *ContextGofiber) GetQuery(key string, defaultValue ...string) string
- func (context *ContextGofiber) GetService() interface{}
- func (context *ContextGofiber) GetServiceOptionList(name string) interface{}
- func (context *ContextGofiber) GetState(name string) interface{}
- func (context *ContextGofiber) Log(v ...interface{})
- func (context *ContextGofiber) QueryParser(out interface{}) error
- func (context *ContextGofiber) Redirect(location string, responseCode ...int) error
- func (context *ContextGofiber) Response(responseDataList interface{}, responseCode ...int) error
- func (context *ContextGofiber) SetContentType(str string)
- func (context *ContextGofiber) SetContext(service interface{}, serviceOptionList map[string]interface{}, i18n *godd.I18N, ...)
- func (context *ContextGofiber) SetCookie(cookie interface{})
- func (context *ContextGofiber) SetDefaultStruct(i interface{}) interface{}
- func (context *ContextGofiber) SetHeader(key string, val string)
- func (context *ContextGofiber) SetLang(lang string)
- func (context *ContextGofiber) SetState(name string, value interface{})
- func (context *ContextGofiber) ValidateStruct(i interface{}, iType map[string]interface{}) *godd.Error
- type RouterGofiber
- func (router *RouterGofiber) Add(method string, path string, handlers ...func(ctx godd.InterfaceContext) error)
- func (router *RouterGofiber) Delete(path string, handlers ...func(ctx godd.InterfaceContext) error)
- func (router *RouterGofiber) Get(path string, handlers ...func(ctx godd.InterfaceContext) error)
- func (router *RouterGofiber) Patch(path string, handlers ...func(ctx godd.InterfaceContext) error)
- func (router *RouterGofiber) Post(path string, handlers ...func(ctx godd.InterfaceContext) error)
- func (router *RouterGofiber) Put(path string, handlers ...func(ctx godd.InterfaceContext) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdapterContextGofiber ¶
func AdapterContextGofiber(ctx interface{}) godd.InterfaceContext
AdapterContextGofiber 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) 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
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) 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) 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) 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) 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
Click to show internal directories.
Click to hide internal directories.