file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) service.FileService

Types

type Params

type Params struct {
	dig.In

	Env            *env.Env
	FileRepository repository.FileRepository
}

type Service

type Service struct {
	Env            *env.Env
	FileRepository repository.FileRepository
}

func (*Service) Delete

func (s *Service) Delete(file string) error

func (*Service) Get

func (s *Service) Get(file string) (*entity.File, error)

func (*Service) GetAll

func (s *Service) GetAll(dir string) ([]entity.File, error)

func (*Service) Open

func (s *Service) Open(name string, src bytes.Buffer) (*entity.File, error)

Jump to

Keyboard shortcuts

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