service

package
v0.0.0-...-a01399d Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileContentService

type FileContentService interface {
	Create(ctx context.Context) error
	Append(ctx context.Context, req *models.WriteRequest) error
	Download(ctx context.Context) ([]byte, error)

	GetFileCount() uint32
	GetServerTime() time.Time
}

FileContentService ...

type FileSvc

type FileSvc struct {
	// contains filtered or unexported fields
}

FileSvc ...

func NewFileSvc

func NewFileSvc(repo *repository.Repository) *FileSvc

func (*FileSvc) Append

func (svc *FileSvc) Append(ctx context.Context, req *models.WriteRequest) error

Append file content

func (*FileSvc) Create

func (svc *FileSvc) Create(ctx context.Context) error

Create file

func (*FileSvc) Download

func (svc *FileSvc) Download(ctx context.Context) ([]byte, error)

Download file content

func (*FileSvc) GetFileCount

func (svc *FileSvc) GetFileCount() uint32

GetFileCount get file count

func (*FileSvc) GetServerTime

func (svc *FileSvc) GetServerTime() time.Time

GetServerTime get server time

type Service

type Service struct {
	FileContentService
}

func NewService

func NewService(repo *repository.Repository) *Service

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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