Documentation
¶
Index ¶
- Variables
- func Abort(msg string, err ...error)
- func AbortError(ctx Context, msg string, err ...error)
- func AbortFatal(ctx Context, msg string, err ...error)
- func ErrorLn(msg string)
- func Panic(msg string, err error)
- func SetTimeZone(timezone ...string) error
- type BuildConfig
- type Context
- type WithApp
- type WithAppBase
Constants ¶
This section is empty.
Variables ¶
View Source
var Testing *testing.T
View Source
var TimeLocationOs *time.Location
View Source
var Timezone = "UTC"
Functions ¶
func AbortError ¶
func AbortFatal ¶
func SetTimeZone ¶
Types ¶
type BuildConfig ¶
type Context ¶
type Context interface {
logger.WithLogger
config.WithCfg
db.WithDB
BuildConfig() *BuildConfig
Cache() cache.Cache
Validator() validator.Validator
Testing() bool
TestParameters() map[string]interface{}
SetTestParameter(key string, value interface{})
GetTestParameter(key string) (interface{}, bool)
AppInstance() string
Application() string
Hostname() string
Close()
}
type WithAppBase ¶
type WithAppBase struct {
// contains filtered or unexported fields
}
func (*WithAppBase) App ¶
func (w *WithAppBase) App() Context
func (*WithAppBase) Init ¶
func (w *WithAppBase) Init(app Context)
Click to show internal directories.
Click to hide internal directories.