space

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 10 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 {
	OpenFile(ctx context.Context, path string, bucketSlug string) (domain.OpenFileInfo, error)
	GetConfig(ctx context.Context) domain.AppConfig
	ListDir(ctx context.Context) ([]domain.FileInfo, error)
	GenerateKeyPair(ctx context.Context, useForce bool) (domain.KeyPair, error)
	CreateFolder(ctx context.Context, path string) error
	AddItems(ctx context.Context, sourcePaths []string, targetPath string) (<-chan domain.AddItemResult, error)
}

Service Layer should not depend on gRPC dependencies

func NewService

func NewService(store store.Store, tc tc.Client, cfg config.Config, opts ...ServiceOption) (Service, error)

type ServiceOption

type ServiceOption func(o *serviceOptions)

func WithAddWatchFileFunc added in v0.0.3

func WithAddWatchFileFunc(fileFunc services.AddFileWatchFunc) ServiceOption

func WithEnv

func WithEnv(env env.SpaceEnv) ServiceOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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