Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound значение не найдено в etcd. ErrNotFound = errors.New("key not found") // ErrAlreadyExists значение уже записано etcd. ErrAlreadyExists = errors.New("key already exists") )
Functions ¶
func InitExternal ¶
InitExternal инициализирует подключения к внешним ресурсам.
Types ¶
type ETCDClient ¶
type ETCDClient struct {
// contains filtered or unexported fields
}
ETCDClient клиент для работы с etcd.
var ETCD *ETCDClient
ETCD объект синглтон для работы с etcd.
func NewETCDClient ¶
func NewETCDClient(cfg *storage.ETCDConfig) (*ETCDClient, error)
NewETCDClient создает новый etcd клиент.
func (*ETCDClient) LoadAction ¶
LoadAction получает действие из etcd.
Click to show internal directories.
Click to hide internal directories.