Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func CreateAPIServer ¶
func CreateAPIServer(svc FileService) *ApiServer
type FileService ¶
type FileService interface { Get(id int) (string, error) Set(path string) (int, error) Delete(id int) error }
func CreateDefaultFileService ¶
func CreateDefaultFileService() FileService
func CreateFileService ¶
func CreateFileService(path string) FileService
func CreateFileServiceLogger ¶
func CreateFileServiceLogger(svc FileService) FileService
type FileServiceController ¶
type FileServiceController struct {
// contains filtered or unexported fields
}
func CreateController ¶
func CreateController(ip, port string) FileServiceController
func CreateControllerByUrl ¶
func CreateControllerByUrl(url string) FileServiceController
func (*FileServiceController) Delete ¶
func (c *FileServiceController) Delete(id int) error
type FileServiceLogger ¶
type FileServiceLogger struct {
// contains filtered or unexported fields
}
func (*FileServiceLogger) Delete ¶
func (svc *FileServiceLogger) Delete(id int) (err error)
type LocalFileService ¶
type LocalFileService struct {
// contains filtered or unexported fields
}
func (*LocalFileService) Delete ¶
func (svc *LocalFileService) Delete(id int) error
Click to show internal directories.
Click to hide internal directories.