storage

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceList

type ServiceList []msg.Service

ServiceList define sort interface for msg.Service list

func (ServiceList) Len

func (sl ServiceList) Len() int

Len is the number of elements in the collection.

func (ServiceList) Less

func (sl ServiceList) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (ServiceList) Swap

func (sl ServiceList) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type Storage

type Storage interface {
	AddService(domain string, msg []msg.Service) error
	UpdateService(domain string, old, cur []msg.Service) error
	DeleteService(domain string, msg []msg.Service) error
	ListServiceByName(domain string) ([]msg.Service, error)
	ListServiceByNamespace(namespace, cluster, zone string) ([]msg.Service, error)
	ListService(cluster, zone string) ([]msg.Service, error)
	Close()
}

Storage interface for dns data persistence

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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