Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Request *http.Request
Writer http.ResponseWriter
ResourceID string
Config *Config
Roles []string
DB *gorm.DB
CurrentUser CurrentUser
Errors
}
'Context' is ec context, which is used for many ec components, used to share infoation between them
type CurrentUser ¶
type CurrentUser interface {
DisplayName() string
}
'CurrentUser' is an interface, which is used for ec admin to get current logged user
Click to show internal directories.
Click to hide internal directories.