/
wax_boy
/
semaphore_custom
Обзор
Документация
Войти
/
wax_boy
/
semaphore_custom
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
pro/api/subscriptions.go
36 строк
925 B
Denis Gukov
feat(subscr): add nodes and UIs
13 фев 2026, 16:46
Не верифицирован
13 фев 2026, 16:46
269bff9
Код
Авторство
О чём код?
package api import ( "net/http" "github.com/semaphoreui/semaphore/db" "github.com/semaphoreui/semaphore/pro_interfaces" ) func NewSubscriptionController( optionsRepo db.OptionsManager, userRepo db.UserManager, runnerRepo db.RunnerManager, tfRepo db.TerraformStore, ) pro_interfaces.SubscriptionController { return &subscriptionControllerImpl{} } type subscriptionControllerImpl struct { } func (ctrl *subscriptionControllerImpl) Delete(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) } func (ctrl *subscriptionControllerImpl) Activate(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) } func (ctrl *subscriptionControllerImpl) GetSubscription(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) } func (ctrl *subscriptionControllerImpl) Refresh(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) }