Documentation ¶
Index ¶
- type Repository
- type Service
- func (service *Service) CreateConfigFile(name string, namespaceId int64, content string) (int64, error)
- func (service *Service) CreateConfigGroup(appName, environment string) (int64, error)
- func (service *Service) ExistsConfigFileById(id int64) bool
- func (service *Service) ExistsConfigFileByNameAndNamespaceId(filename string, namespaceId int64) bool
- func (service *Service) ExistsConfigGroupByAppAndEnvironment(appName, environment string) bool
- func (service *Service) ExistsConfigGroupById(id int64) bool
- func (service *Service) ListConfigFile() ([]map[string]interface{}, error)
- func (service *Service) ListConfigGroup() ([]map[string]interface{}, error)
- func (service *Service) PublishConfigGroup(id int64) error
- func (service *Service) UpdateConfigFile(id int64, content string) error
- func (service *Service) UpdateConfigGroupAssociation(id int64, fileIds []int64) error
- func (service *Service) ViewConfigFile(id int64) (map[string]interface{}, error)
- func (service *Service) ViewConfigGroup(id int64) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { ListConfigGroupBrief() ([]*app.ConfigGroup, error) ExistsConfigGroupByAppAndEnvironment(appName, environment string) bool ExistsConfigGroupById(id int64) bool InsertConfigGroup(cg *app.ConfigGroup) (int64, error) RetrieveConfigGroupBrief(id int64) (*app.ConfigGroup, error) RetrieveConfigGroupDetail(id int64) (*app.ConfigGroup, error) UpdateConfigGroupAssociation(groupId int64, addFileIds []int64, delFileIds []int64) error UpdateConfigGroupOutdated(id int64, outdated bool) error ListConfigFileBrief() ([]*app.ConfigFile, error) ExistsConfigFileByNameAndNamespaceId(filename string, namespaceId int64) bool ExistsConfigFileById(id int64) bool InsertConfigFileWithItems(cf *app.ConfigFile) (int64, error) RetrieveConfigFileDetail(id int64) (*app.ConfigFile, error) UpdateConfigFile(fileId int64, items []*app.ConfigItem) error }
type Service ¶
type Service struct {
Repo Repository
}
func (*Service) CreateConfigFile ¶
func (*Service) CreateConfigGroup ¶
func (*Service) ExistsConfigFileById ¶
func (*Service) ExistsConfigFileByNameAndNamespaceId ¶
func (*Service) ExistsConfigGroupByAppAndEnvironment ¶
func (*Service) ExistsConfigGroupById ¶
func (*Service) ListConfigFile ¶
func (*Service) ListConfigGroup ¶
func (*Service) PublishConfigGroup ¶
func (*Service) UpdateConfigFile ¶
func (*Service) UpdateConfigGroupAssociation ¶
func (*Service) ViewConfigFile ¶
Click to show internal directories.
Click to hide internal directories.