Documentation ¶
Index ¶
- func NewSpiderSyncService(opts ...Option) (svc2 interfaces.SpiderSyncService, err error)
- func ProvideSpiderSyncService(path string, opts ...Option) func() (svc interfaces.SpiderSyncService, err error)
- type Option
- type Service
- func (svc *Service) ForceGetFsService(id primitive.ObjectID) (fsSvc interfaces.SpiderFsService, err error)
- func (svc *Service) GetConfigPath() (path string)
- func (svc *Service) GetFsService(id primitive.ObjectID) (fsSvc interfaces.SpiderFsService, err error)
- func (svc *Service) SetConfigPath(path string)
- func (svc *Service) SetFsPathBase(path string)
- func (svc *Service) SetRepoPathBase(path string)
- func (svc *Service) SetWorkspacePathBase(path string)
- func (svc *Service) SyncToFs(id primitive.ObjectID) (err error)
- func (svc *Service) SyncToWorkspace(id primitive.ObjectID) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpiderSyncService ¶
func NewSpiderSyncService(opts ...Option) (svc2 interfaces.SpiderSyncService, err error)
func ProvideSpiderSyncService ¶
func ProvideSpiderSyncService(path string, opts ...Option) func() (svc interfaces.SpiderSyncService, err error)
Types ¶
type Option ¶
type Option func(svc interfaces.SpiderSyncService)
func WithConfigPath ¶
func WithFsPathBase ¶
func WithRepoPathBase ¶
func WithWorkspacePathBase ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ForceGetFsService ¶
func (svc *Service) ForceGetFsService(id primitive.ObjectID) (fsSvc interfaces.SpiderFsService, err error)
func (*Service) GetConfigPath ¶
func (*Service) GetFsService ¶
func (svc *Service) GetFsService(id primitive.ObjectID) (fsSvc interfaces.SpiderFsService, err error)
func (*Service) SetConfigPath ¶
func (*Service) SetFsPathBase ¶
func (*Service) SetRepoPathBase ¶
func (*Service) SetWorkspacePathBase ¶
Click to show internal directories.
Click to hide internal directories.