Documentation
¶
Index ¶
- func Mount(ctx context.Context, cfg *config.Setting) (*mount.Mounter, error)
- func Watch(cfg *config.Setting, handlers []*Handler) (*watcher.Watcher, error)
- type Handler
- type SyncEvent
- type SyncStatus
- type Syncer
- func (s *Syncer) Close()
- func (s *Syncer) Events() <-chan SyncEvent
- func (s *Syncer) FSByConfig(cfg *config.Setting) (*oss.FS, error)
- func (s *Syncer) HandlerByConfig(cfg *config.Setting) (*Handler, error)
- func (s *Syncer) Reload(cfg *config.Config)
- func (s *Syncer) Start(ctx context.Context, cfg *config.Config) error
- func (s *Syncer) Sync(cfg *config.Setting)
- func (s *Syncer) SyncAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶ added in v1.0.2
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶ added in v1.0.2
type SyncEvent ¶ added in v1.0.2
type SyncEvent struct {
Handler *Handler
SettingKey string
Status SyncStatus
}
type SyncStatus ¶ added in v1.0.2
type SyncStatus int32
const ( SyncComplete SyncStatus = iota SyncStart )
type Syncer ¶ added in v1.0.1
type Syncer struct {
// contains filtered or unexported fields
}
func (*Syncer) FSByConfig ¶ added in v1.0.4
func (*Syncer) HandlerByConfig ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.