Help us shape the future of Go! Take the 2026 Go Developer Survey

fileshare

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL