Documentation ¶
Index ¶
- type Business
- func (u *Business) CreateBusiness(ctx kratosx.Context, req *entity.Business) (uint32, error)
- func (u *Business) DeleteBusiness(ctx kratosx.Context, id uint32) error
- func (u *Business) ListBusiness(ctx kratosx.Context, req *types.ListBusinessRequest) ([]*entity.Business, uint32, error)
- func (u *Business) ListBusinessValue(ctx kratosx.Context, bid uint32) ([]*entity.BusinessValue, error)
- func (u *Business) UpdateBusiness(ctx kratosx.Context, req *entity.Business) error
- func (u *Business) UpdateBusinessValue(ctx kratosx.Context, list []*entity.BusinessValue) error
- type Configure
- func (u *Configure) CompareConfigure(ctx kratosx.Context, req *types.CompareConfigureRequest) ([]*types.CompareConfigureReply, error)
- func (u *Configure) GetConfigureByEnvAndSrv(ctx kratosx.Context, envId, srvId uint32) (*entity.Configure, error)
- func (u *Configure) ListConfigure(ctx kratosx.Context, req *types.ListConfigureRequest) ([]*entity.Configure, uint32, error)
- func (u *Configure) RenderCurrentTemplate(ctx kratosx.Context, srvId, envId uint32) (string, string, error)
- func (u *Configure) SendWatcher(ctx kratosx.Context, envId uint32, srvId uint32) error
- func (u *Configure) UpdateConfigure(ctx kratosx.Context, req *entity.Configure) error
- func (u *Configure) Watch(ctx kratosx.Context, in *types.WatcherConfigRequest, ...) error
- type Env
- func (u *Env) CreateEnv(ctx kratosx.Context, req *entity.Env) (uint32, error)
- func (u *Env) DeleteEnv(ctx kratosx.Context, id uint32) error
- func (u *Env) GetEnvToken(ctx kratosx.Context, id uint32) (string, error)
- func (u *Env) ListEnv(ctx kratosx.Context, req *types.ListEnvRequest) ([]*entity.Env, uint32, error)
- func (u *Env) UpdateEnv(ctx kratosx.Context, req *entity.Env) error
- type Password
- type Resource
- func (u *Resource) CreateResource(ctx kratosx.Context, req *entity.Resource) (uint32, error)
- func (u *Resource) DeleteResource(ctx kratosx.Context, id uint32) error
- func (u *Resource) GetResource(ctx kratosx.Context, id uint32) (*entity.Resource, error)
- func (u *Resource) GetResourceByKeyword(ctx kratosx.Context, keyword string) (*entity.Resource, error)
- func (u *Resource) ListResource(ctx kratosx.Context, req *types.ListResourceRequest) ([]*entity.Resource, uint32, error)
- func (u *Resource) ListResourceValue(ctx kratosx.Context, rid uint32) ([]*entity.ResourceValue, error)
- func (u *Resource) UpdateResource(ctx kratosx.Context, req *entity.Resource) error
- func (u *Resource) UpdateResourceValue(ctx kratosx.Context, list []*entity.ResourceValue) error
- type Server
- func (u *Server) CreateServer(ctx kratosx.Context, req *entity.Server) (uint32, error)
- func (u *Server) DeleteServer(ctx kratosx.Context, id uint32) error
- func (u *Server) ListServer(ctx kratosx.Context, req *types.ListServerRequest) ([]*entity.Server, uint32, error)
- func (u *Server) UpdateServer(ctx kratosx.Context, req *entity.Server) error
- type Template
- func (t *Template) CompareTemplate(ctx kratosx.Context, req *types.CompareTemplateRequest) ([]*types.CompareTemplateReply, error)
- func (t *Template) CreateTemplate(ctx kratosx.Context, template *entity.Template) (uint32, error)
- func (t *Template) CurrentTemplate(ctx kratosx.Context, srvId uint32) (*entity.Template, error)
- func (t *Template) DeleteUpdateTemplate(ctx kratosx.Context, id uint32) error
- func (t *Template) GetTemplate(ctx kratosx.Context, id uint32) (*entity.Template, error)
- func (t *Template) ListTemplate(ctx kratosx.Context, req *types.ListTemplateRequest) ([]*entity.Template, uint32, error)
- func (t *Template) PreviewCurrentTemplate(ctx kratosx.Context, req *types.PreviewCurrentTemplateRequest) (*types.PreviewTemplateReply, error)
- func (t *Template) PreviewTemplate(ctx kratosx.Context, req *types.PreviewTemplateRequest) (*types.PreviewTemplateReply, error)
- func (t *Template) SwitchTemplate(ctx kratosx.Context, srvId, tpId uint32) error
- func (t *Template) UpdateTemplate(ctx kratosx.Context, req *entity.Template) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Business ¶
type Business struct {
// contains filtered or unexported fields
}
func NewBusiness ¶
func NewBusiness( conf *conf.Config, repo repository.Business, permission repository.Permission, ) *Business
func (*Business) CreateBusiness ¶
CreateBusiness 创建业务配置信息
func (*Business) DeleteBusiness ¶
DeleteBusiness 删除业务配置信息
func (*Business) ListBusiness ¶
func (u *Business) ListBusiness(ctx kratosx.Context, req *types.ListBusinessRequest) ([]*entity.Business, uint32, error)
ListBusiness 获取业务配置信息列表
func (*Business) ListBusinessValue ¶
func (u *Business) ListBusinessValue(ctx kratosx.Context, bid uint32) ([]*entity.BusinessValue, error)
ListBusinessValue 获取业务配置值信息列表
func (*Business) UpdateBusiness ¶
UpdateBusiness 更新业务配置信息
func (*Business) UpdateBusinessValue ¶
UpdateBusinessValue 更新业务配置值信息
type Configure ¶
type Configure struct {
// contains filtered or unexported fields
}
func NewConfigure ¶
func NewConfigure( conf *conf.Config, repo repository.Configure, server repository.Server, env repository.Env, business repository.Business, resource repository.Resource, template repository.Template, permission repository.Permission, ) *Configure
func (*Configure) CompareConfigure ¶
func (u *Configure) CompareConfigure(ctx kratosx.Context, req *types.CompareConfigureRequest) ([]*types.CompareConfigureReply, error)
CompareConfigure 对比配置
func (*Configure) GetConfigureByEnvAndSrv ¶
func (u *Configure) GetConfigureByEnvAndSrv(ctx kratosx.Context, envId, srvId uint32) (*entity.Configure, error)
GetConfigureByEnvAndSrv 获取指定标识的配置信息
func (*Configure) ListConfigure ¶
func (u *Configure) ListConfigure(ctx kratosx.Context, req *types.ListConfigureRequest) ([]*entity.Configure, uint32, error)
ListConfigure 获取分页配置信息
func (*Configure) RenderCurrentTemplate ¶
func (*Configure) SendWatcher ¶
func (*Configure) UpdateConfigure ¶
UpdateConfigure 更新模配置
func (*Configure) Watch ¶
func (u *Configure) Watch(ctx kratosx.Context, in *types.WatcherConfigRequest, reply types.WatcherConfigReplyFunc) error
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
func NewEnv ¶
func NewEnv( conf *conf.Config, repo repository.Env, permission repository.Permission, ) *Env
func (*Env) GetEnvToken ¶
GetEnvToken 获取环境token
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func NewResource( conf *conf.Config, repo repository.Resource, permission repository.Permission, ) *Resource
func (*Resource) CreateResource ¶
CreateResource 创建资源配置信息
func (*Resource) DeleteResource ¶
DeleteResource 删除资源配置信息
func (*Resource) GetResource ¶
GetResource 获取指定的资源配置信息
func (*Resource) GetResourceByKeyword ¶
func (u *Resource) GetResourceByKeyword(ctx kratosx.Context, keyword string) (*entity.Resource, error)
GetResourceByKeyword 获取指定的资源配置信息
func (*Resource) ListResource ¶
func (u *Resource) ListResource(ctx kratosx.Context, req *types.ListResourceRequest) ([]*entity.Resource, uint32, error)
ListResource 获取资源配置信息列表
func (*Resource) ListResourceValue ¶
func (u *Resource) ListResourceValue(ctx kratosx.Context, rid uint32) ([]*entity.ResourceValue, error)
ListResourceValue 获取业务配置值信息列表
func (*Resource) UpdateResource ¶
UpdateResource 更新资源配置信息
func (*Resource) UpdateResourceValue ¶
UpdateResourceValue 更新业务配置值信息
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( conf *conf.Config, repo repository.Server, permission repository.Permission, ) *Server
func (*Server) CreateServer ¶
CreateServer 创建服务信息
func (*Server) DeleteServer ¶
DeleteServer 删除服务信息
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
func NewTemplate( conf *conf.Config, repo repository.Template, business repository.Business, resource repository.Resource, permission repository.Permission, ) *Template
func (*Template) CompareTemplate ¶
func (t *Template) CompareTemplate(ctx kratosx.Context, req *types.CompareTemplateRequest) ([]*types.CompareTemplateReply, error)
CompareTemplate 对比变更细节
func (*Template) CreateTemplate ¶
CreateTemplate 添加模板信息
func (*Template) CurrentTemplate ¶
CurrentTemplate 获取当前版本的配置信息
func (*Template) DeleteUpdateTemplate ¶
DeleteUpdateTemplate 删除模板信息
func (*Template) GetTemplate ¶
GetTemplate 获取指定模板信息
func (*Template) ListTemplate ¶
func (t *Template) ListTemplate(ctx kratosx.Context, req *types.ListTemplateRequest) ([]*entity.Template, uint32, error)
ListTemplate 获取分页模板信息
func (*Template) PreviewCurrentTemplate ¶
func (t *Template) PreviewCurrentTemplate(ctx kratosx.Context, req *types.PreviewCurrentTemplateRequest) (*types.PreviewTemplateReply, error)
PreviewCurrentTemplate 预览当前配置
func (*Template) PreviewTemplate ¶
func (t *Template) PreviewTemplate(ctx kratosx.Context, req *types.PreviewTemplateRequest) (*types.PreviewTemplateReply, error)
PreviewTemplate 预览配置
func (*Template) SwitchTemplate ¶
SwitchTemplate 切换指定版本信息