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

Source Files

Directories

Path Synopsis