mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-20 04:29:24 -06:00
311 lines
9.6 KiB
Go
311 lines
9.6 KiB
Go
package svc
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
|
)
|
|
|
|
// NewLogging returns a service that logs messages.
|
|
func NewLogging(next Service, logger log.Logger) logging {
|
|
return logging{
|
|
next: next,
|
|
logger: logger,
|
|
}
|
|
}
|
|
|
|
type logging struct {
|
|
next Service
|
|
logger log.Logger
|
|
}
|
|
|
|
// ServeHTTP implements the Service interface.
|
|
func (l logging) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
l.next.ServeHTTP(w, r)
|
|
}
|
|
|
|
// ListApplications implements the Service interface.
|
|
func (l logging) ListApplications(w http.ResponseWriter, r *http.Request) {
|
|
l.next.ListApplications(w, r)
|
|
}
|
|
|
|
// GetApplication implements the Service interface.
|
|
func (l logging) GetApplication(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetApplication(w, r)
|
|
}
|
|
|
|
// GetMe implements the Service interface.
|
|
func (l logging) GetMe(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetMe(w, r)
|
|
}
|
|
|
|
// GetUsers implements the Service interface.
|
|
func (l logging) GetUsers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetUsers(w, r)
|
|
}
|
|
|
|
// GetUser implements the Service interface.
|
|
func (l logging) GetUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetUser(w, r)
|
|
}
|
|
|
|
// PostUser implements the Service interface.
|
|
func (l logging) PostUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostUser(w, r)
|
|
}
|
|
|
|
// DeleteUser implements the Service interface.
|
|
func (l logging) DeleteUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteUser(w, r)
|
|
}
|
|
|
|
// PatchUser implements the Service interface.
|
|
func (l logging) PatchUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PatchUser(w, r)
|
|
}
|
|
|
|
// ChangeOwnPassword implements the Service interface.
|
|
func (l logging) ChangeOwnPassword(w http.ResponseWriter, r *http.Request) {
|
|
l.next.ChangeOwnPassword(w, r)
|
|
}
|
|
|
|
// ListAppRoleAssignments implements the Service interface.
|
|
func (l logging) ListAppRoleAssignments(w http.ResponseWriter, r *http.Request) {
|
|
l.next.ListAppRoleAssignments(w, r)
|
|
}
|
|
|
|
// CreateAppRoleAssignment implements the Service interface.
|
|
func (l logging) CreateAppRoleAssignment(w http.ResponseWriter, r *http.Request) {
|
|
l.next.CreateAppRoleAssignment(w, r)
|
|
}
|
|
|
|
// DeleteAppRoleAssignment implements the Service interface.
|
|
func (l logging) DeleteAppRoleAssignment(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteAppRoleAssignment(w, r)
|
|
}
|
|
|
|
// GetGroups implements the Service interface.
|
|
func (l logging) GetGroups(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetGroups(w, r)
|
|
}
|
|
|
|
// GetGroup implements the Service interface.
|
|
func (l logging) GetGroup(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetGroup(w, r)
|
|
}
|
|
|
|
// PostGroup implements the Service interface.
|
|
func (l logging) PostGroup(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostGroup(w, r)
|
|
}
|
|
|
|
// PatchGroup implements the Service interface.
|
|
func (l logging) PatchGroup(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PatchGroup(w, r)
|
|
}
|
|
|
|
// DeleteGroup implements the Service interface.
|
|
func (l logging) DeleteGroup(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteGroup(w, r)
|
|
}
|
|
|
|
// GetGroupMembers implements the Service interface.
|
|
func (l logging) GetGroupMembers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetGroupMembers(w, r)
|
|
}
|
|
|
|
// PostGroupMember implements the Service interface.
|
|
func (l logging) PostGroupMember(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostGroupMember(w, r)
|
|
}
|
|
|
|
// DeleteGroupMember implements the Service interface.
|
|
func (l logging) DeleteGroupMember(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteGroupMember(w, r)
|
|
}
|
|
|
|
// GetEducationSchools implements the Service interface.
|
|
func (l logging) GetEducationSchools(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationSchools(w, r)
|
|
}
|
|
|
|
// GetEducationSchool implements the Service interface.
|
|
func (l logging) GetEducationSchool(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationSchool(w, r)
|
|
}
|
|
|
|
// PostEducationSchool implements the Service interface.
|
|
func (l logging) PostEducationSchool(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationSchool(w, r)
|
|
}
|
|
|
|
// PatchEducationSchool implements the Service interface.
|
|
func (l logging) PatchEducationSchool(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PatchEducationSchool(w, r)
|
|
}
|
|
|
|
// DeleteEducationSchool implements the Service interface.
|
|
func (l logging) DeleteEducationSchool(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationSchool(w, r)
|
|
}
|
|
|
|
// GetEducationSchoolUsers implements the Service interface.
|
|
func (l logging) GetEducationSchoolUsers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationSchoolUsers(w, r)
|
|
}
|
|
|
|
// PostEducationSchoolUser implements the Service interface.
|
|
func (l logging) PostEducationSchoolUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationSchoolUser(w, r)
|
|
}
|
|
|
|
// DeleteEducationSchoolUser implements the Service interface.
|
|
func (l logging) DeleteEducationSchoolUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationSchoolUser(w, r)
|
|
}
|
|
|
|
// GetEducationSchoolClasses implements the Service interface.
|
|
func (l logging) GetEducationSchoolClasses(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationSchoolClasses(w, r)
|
|
}
|
|
|
|
// PostEducationSchoolClass implements the Service interface.
|
|
func (l logging) PostEducationSchoolClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationSchoolClass(w, r)
|
|
}
|
|
|
|
// DeleteEducationSchoolClass implements the Service interface.
|
|
func (l logging) DeleteEducationSchoolClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationSchoolClass(w, r)
|
|
}
|
|
|
|
// GetEducationClasses implements the Service interface.
|
|
func (l logging) GetEducationClasses(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationClasses(w, r)
|
|
}
|
|
|
|
// GetEducationClass implements the Service interface.
|
|
func (l logging) GetEducationClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationClass(w, r)
|
|
}
|
|
|
|
// PostEducationClass implements the Service interface.
|
|
func (l logging) PostEducationClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationClass(w, r)
|
|
}
|
|
|
|
// PatchEducationClass implements the Service interface.
|
|
func (l logging) PatchEducationClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PatchEducationClass(w, r)
|
|
}
|
|
|
|
// DeleteEducationClass implements the Service interface.
|
|
func (l logging) DeleteEducationClass(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationClass(w, r)
|
|
}
|
|
|
|
// GetEducationClassMembers implements the Service interface.
|
|
func (l logging) GetEducationClassMembers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationClassMembers(w, r)
|
|
}
|
|
|
|
// PostEducationClassMember implements the Service interface.
|
|
func (l logging) PostEducationClassMember(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationClassMember(w, r)
|
|
}
|
|
|
|
// DeleteEducationClassMember implements the Service interface.
|
|
func (l logging) DeleteEducationClassMember(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationClassMember(w, r)
|
|
}
|
|
|
|
// GetEducationUsers implements the Service interface.
|
|
func (l logging) GetEducationUsers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationUsers(w, r)
|
|
}
|
|
|
|
// GetEducationUser implements the Service interface.
|
|
func (l logging) GetEducationUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetEducationUser(w, r)
|
|
}
|
|
|
|
// PostEducationUser implements the Service interface.
|
|
func (l logging) PostEducationUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PostEducationUser(w, r)
|
|
}
|
|
|
|
// DeleteEducationUser implements the Service interface.
|
|
func (l logging) DeleteEducationUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.DeleteEducationUser(w, r)
|
|
}
|
|
|
|
// PatchEducationUser implements the Service interface.
|
|
func (l logging) PatchEducationUser(w http.ResponseWriter, r *http.Request) {
|
|
l.next.PatchEducationUser(w, r)
|
|
}
|
|
|
|
// GetDrives implements the Service interface.
|
|
func (l logging) GetDrives(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetDrives(w, r)
|
|
}
|
|
|
|
// GetSingleDrive implements the Service interface.
|
|
func (l logging) GetSingleDrive(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetDrives(w, r)
|
|
}
|
|
|
|
// UpdateDrive implements the Service interface.
|
|
func (l logging) UpdateDrive(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetDrives(w, r)
|
|
}
|
|
|
|
// DeleteDrive implements the Service interface.
|
|
func (l logging) DeleteDrive(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetDrives(w, r)
|
|
}
|
|
|
|
// GetAllDrives implements the Service interface.
|
|
func (l logging) GetAllDrives(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetAllDrives(w, r)
|
|
}
|
|
|
|
// CreateDrive implements the Service interface.
|
|
func (l logging) CreateDrive(w http.ResponseWriter, r *http.Request) {
|
|
l.next.CreateDrive(w, r)
|
|
}
|
|
|
|
// GetRootDriveChildren implements the Service interface.
|
|
func (l logging) GetRootDriveChildren(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetRootDriveChildren(w, r)
|
|
}
|
|
|
|
// GetTags implements the Service interface.
|
|
func (l logging) GetTags(w http.ResponseWriter, r *http.Request) {
|
|
l.next.GetTags(w, r)
|
|
}
|
|
|
|
// AssignTags implements the Service interface.
|
|
func (l logging) AssignTags(w http.ResponseWriter, r *http.Request) {
|
|
l.next.AssignTags(w, r)
|
|
}
|
|
|
|
// UnassignTags implements the Service interface.
|
|
func (l logging) UnassignTags(w http.ResponseWriter, r *http.Request) {
|
|
l.next.UnassignTags(w, r)
|
|
}
|
|
|
|
// GetEducationClassTeachers implements the Service interface.
|
|
func (l logging) GetEducationClassTeachers(w http.ResponseWriter, r *http.Request) {
|
|
l.next.UnassignTags(w, r)
|
|
}
|
|
|
|
// PostEducationClassTeacher implements the Service interface.
|
|
func (l logging) PostEducationClassTeacher(w http.ResponseWriter, r *http.Request) {
|
|
l.next.UnassignTags(w, r)
|
|
}
|
|
|
|
// DeleteEducationClassTeacher implements the Service interface.
|
|
func (l logging) DeleteEducationClassTeacher(w http.ResponseWriter, r *http.Request) {
|
|
l.next.UnassignTags(w, r)
|
|
}
|