storage

package
v0.0.0-...-e6503be Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeStorage

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

func NewCompositeStorage

func NewCompositeStorage(storages []Storage) *CompositeStorage

func (*CompositeStorage) Save

type ConsuleStorage

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

func NewConsuleStorage

func NewConsuleStorage(consul *api.Client) *ConsuleStorage

func (*ConsuleStorage) Save

type FSStorage

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

func NewFSStorage

func NewFSStorage(path string) *FSStorage

func (*FSStorage) Save

func (s *FSStorage) Save(fzs []forwardzone.ForwardZone) error

type Storage

type Storage interface {
	Save(fzs []forwardzone.ForwardZone) error
}

Jump to

Keyboard shortcuts

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