service

package
v0.0.0-...-21ca16f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtcdWatch  = "watch"
	EtcdStatic = "static"
)
View Source
const (
	MysqlWatch  = "watch"
	MysqlStatic = "static"
)
View Source
const (
	RedisWatch  = "watch"
	RedisStatic = "static"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdCollection

type EtcdCollection interface {
	EtcdCollection(config []byte) (*clientv3.Client, error)
	GetEtcdService() (*clientv3.Client, error)
	GetConfig() interface{}
	GetAddress() []string
	ServerName() string
}

type EtcdServiceOpen

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

func GetEtcdOpen

func GetEtcdOpen(name string, e EtcdCollection) *EtcdServiceOpen

func WatchEtcdOpen

func WatchEtcdOpen(name string, e EtcdCollection) *EtcdServiceOpen

func (*EtcdServiceOpen) GetAddress

func (e *EtcdServiceOpen) GetAddress() []string

func (*EtcdServiceOpen) GetClient

func (e *EtcdServiceOpen) GetClient() *clientv3.Client

func (*EtcdServiceOpen) GetConfig

func (e *EtcdServiceOpen) GetConfig() interface{}

func (*EtcdServiceOpen) Name

func (e *EtcdServiceOpen) Name() string

func (*EtcdServiceOpen) ServerName

func (e *EtcdServiceOpen) ServerName() string

func (*EtcdServiceOpen) Update

func (e *EtcdServiceOpen) Update(cs *source.ChangeSet)

type MysqlCollection

type MysqlCollection interface {
	MysqlCollection(config []byte) (*gorm.DB, error)
	GetMysqlService() (*gorm.DB, error)
}

type MysqlServiceOpen

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

func GetMysqlOpen

func GetMysqlOpen(name string, m MysqlCollection) *MysqlServiceOpen

func WatchMysqlOpen

func WatchMysqlOpen(name string, m MysqlCollection) *MysqlServiceOpen

func (*MysqlServiceOpen) GetDB

func (m *MysqlServiceOpen) GetDB() *gorm.DB

func (*MysqlServiceOpen) Name

func (m *MysqlServiceOpen) Name() string

func (*MysqlServiceOpen) Update

func (m *MysqlServiceOpen) Update(cs *source.ChangeSet)

type RedisCollection

type RedisCollection interface {
	RedisCollection([]byte) (*redis.Client, error)
	GetRedisService() (*redis.Client, error)
	GetConfig() interface{}
	GetAddress() string
}

type RedisServiceOpen

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

func GetRedisOpen

func GetRedisOpen(name string, r RedisCollection) *RedisServiceOpen

func WatchRedisOpen

func WatchRedisOpen(name string, r RedisCollection) *RedisServiceOpen

func (*RedisServiceOpen) CloseWatch

func (r *RedisServiceOpen) CloseWatch(name string)

func (*RedisServiceOpen) GetAddress

func (r *RedisServiceOpen) GetAddress() string

func (*RedisServiceOpen) GetClient

func (r *RedisServiceOpen) GetClient() *redis.Client

func (*RedisServiceOpen) GetConfig

func (r *RedisServiceOpen) GetConfig() interface{}

func (*RedisServiceOpen) Name

func (r *RedisServiceOpen) Name() string

func (*RedisServiceOpen) Update

func (r *RedisServiceOpen) Update(cs *source.ChangeSet)

func (*RedisServiceOpen) Watch

func (r *RedisServiceOpen) Watch(name string) chan bool

Jump to

Keyboard shortcuts

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