diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-06-29 23:33:02 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-06-29 23:33:02 +0200 |
commit | 7a414da9a802d5eeee911b3536790a061e1d7503 (patch) | |
tree | e009cd94e72bf908701ca6067833ed14f6860b43 /pkg/view/filesystem.go | |
parent | 1ae70dbd9124675d4a510954619b01edd5f1f6c3 (diff) | |
download | lens-7a414da9a802d5eeee911b3536790a061e1d7503.tar.gz lens-7a414da9a802d5eeee911b3536790a061e1d7503.tar.bz2 lens-7a414da9a802d5eeee911b3536790a061e1d7503.zip |
ref: Move all controller under the same folder
Move all controller to the same folder and rename them to service.
Moving them to the same folder allow an easier setup for testing.
Diffstat (limited to 'pkg/view/filesystem.go')
-rw-r--r-- | pkg/view/filesystem.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/view/filesystem.go b/pkg/view/filesystem.go index d2ebff4..d598b88 100644 --- a/pkg/view/filesystem.go +++ b/pkg/view/filesystem.go @@ -4,25 +4,25 @@ import ( "github.com/valyala/fasthttp" "git.sr.ht/~gabrielgio/img" - "git.sr.ht/~gabrielgio/img/pkg/components/filesystem" "git.sr.ht/~gabrielgio/img/pkg/database/repository" "git.sr.ht/~gabrielgio/img/pkg/ext" + "git.sr.ht/~gabrielgio/img/pkg/service" ) type ( FileSystemView struct { - controller filesystem.Controller + controller service.FileSystemController settings repository.SettingsRepository } FilePage struct { - Page *filesystem.Page + Page *service.Page ShowMode bool ShowOwner bool } ) func NewFileSystemView( - controller filesystem.Controller, + controller service.FileSystemController, settingsRepository repository.SettingsRepository, ) *FileSystemView { return &FileSystemView{ |