Documentation
¶
Index ¶
- Variables
- func Created(c *gin.Context, v interface{}) interface{}
- func Error(c *gin.Context, v interface{}) interface{}
- func GetAuthUser(c *gin.Context) *UserModel.UserImpl
- func OK(c *gin.Context, v interface{}) interface{}
- func Test(c *gin.Context)
- func Unauthorized(c *gin.Context, v interface{}) interface{}
- type AuthController
- type ConfigMapController
- type DeploymentController
- type JSONResult
- type Output
- type ResultFunc
- type SecretController
- type TestUserReq
- type UserController
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetCtrl = wire.NewSet( NewAuthController, NewSecretController, NewConfigMapController, ProviderDeploymentController, ProviderUserController, )
View Source
var ResultPool *sync.Pool
Functions ¶
func Unauthorized ¶
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController(userService *service.IUserServiceGetterImpl) *AuthController
func (*AuthController) Build ¶
func (a *AuthController) Build(r *gin.RouterGroup)
func (*AuthController) GetMe ¶
func (a *AuthController) GetMe(c *gin.Context)
func (*AuthController) Login ¶
func (this *AuthController) Login(c *gin.Context)
func (*AuthController) SignUp ¶
func (a *AuthController) SignUp(c *gin.Context)
type ConfigMapController ¶
type ConfigMapController struct {
// contains filtered or unexported fields
}
func NewConfigMapController ¶
func NewConfigMapController(configService *service.ConfigmapService) *ConfigMapController
func (*ConfigMapController) Build ¶
func (this *ConfigMapController) Build(r *gin.RouterGroup)
func (*ConfigMapController) ListAll ¶
func (this *ConfigMapController) ListAll(c *gin.Context)
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
func ProviderDeploymentController ¶
func ProviderDeploymentController(deploymentService *service.DeploymentService) *DeploymentController
func (*DeploymentController) Build ¶
func (this *DeploymentController) Build(r *gin.RouterGroup)
func (*DeploymentController) GetPodContainer ¶
func (this *DeploymentController) GetPodContainer(c *gin.Context)
type JSONResult ¶
type JSONResult struct {
Message string `json:"message"`
Code int8 `json:"code"`
Result interface{} `json:"result"`
Token string `json:"token"`
}
func NewJSONResult ¶
func NewJSONResult(result interface{}) *JSONResult
type ResultFunc ¶
func ResultWrapper ¶
func ResultWrapper(c *gin.Context) ResultFunc
type SecretController ¶
type SecretController struct {
// contains filtered or unexported fields
}
func NewSecretController ¶
func NewSecretController(secretService service.ISecret) *SecretController
func (*SecretController) Build ¶
func (this *SecretController) Build(r *gin.RouterGroup)
type TestUserReq ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func ProviderUserController ¶
func ProviderUserController(userService *service.IUserServiceGetterImpl) *UserController
func (*UserController) UserDetail ¶
func (this *UserController) UserDetail(c *gin.Context)
func (*UserController) UserList ¶
func (this *UserController) UserList(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.