storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is the system component to interact with local and remote storage.

func New

func New(opt *option.Options, cls cluster.Cluster) *Storage

New creates a Storage.

func (*Storage) Close

func (s *Storage) Close()

Close closes storage.

func (*Storage) SyncStatus

func (s *Storage) SyncStatus(statuses map[string]string)

SyncStatus synchronizes the status.

func (*Storage) WatchConfig

func (s *Storage) WatchConfig() <-chan map[string]string

WatchConfig return the channel to watch the change of config, the channel always output full config.

Jump to

Keyboard shortcuts

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