topom

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosedTopom = errors.New("use of closed topom")

Functions

func NewService

func NewService(config *config.DashboardConfig, topomMapper TopomMapper, groupMapper GroupMapper, sentinelMapper SentinelMapper,
	gslbMapper GSLBMapper, tfMapper TemplateFileMapper) (*service, error)

Types

type GSLBMapper

type GSLBMapper interface {
	Update(g *dao.GSLB) error
	Delete(g *dao.GSLB) error
	Info() (dao.GSLBs, error)
}

type GSLBStats

type GSLBStats struct {
	Error    error
	UnixTime int64
	Timeout  bool
}

type GroupMapper

type GroupMapper interface {
	Create(group *dao.Group) error
	Update(group *dao.Group) error
	Remove(group *dao.Group) error
	Info() (dao.Groups, error)
}

type RedisStats

type RedisStats struct {
	Error    error
	Stats    map[string]string
	Sentinel map[string]*redis.SentinelGroup
	UnixTime int64
	Timeout  bool
}

func (*RedisStats) MasterAddr

func (s *RedisStats) MasterAddr() string

type SentinelMapper

type SentinelMapper interface {
	Update(sentinel *dao.Sentinel) error
	Info() (*dao.Sentinel, error)
}

type TemplateFileMapper

type TemplateFileMapper interface {
	Info() (dao.TemplateFiles, error)
}

type TopomMapper

type TopomMapper interface {
	Create() error
	Delete() error
	Info() (*dao.Topom, error)
}

Directories

Path Synopsis
client
dao

Jump to

Keyboard shortcuts

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