Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Create(filePath string) (*model.FileShare, error)
Get(token string) (*model.FileShare, bool)
GetByPath(filePath string) (*model.FileShare, bool)
Delete(token string) error
}
Service exposes file-share persistence without leaking repository types into the HTTP layer. Path authorization remains with the caller because the same policy is shared by all file endpoints.
func NewService ¶
func NewService() Service
Click to show internal directories.
Click to hide internal directories.