Documentation ¶
Index ¶
- type Cache
- func (vc *Cache) ApplyEvent(receiver chan interface{}, skip chan string) chan error
- func (vc *Cache) Exec(vsqls []string) (aff int64, err error)
- func (vc *Cache) GetBotInterfaces(skip chan string) map[string]func(msg string) string
- func (vc *Cache) GetDropSQL(drops []isql.DropTable) (vsqls []string)
- func (vc *Cache) GetHTTPInterfaces(skip chan string) map[string]func(w http.ResponseWriter, r *http.Request)
- func (vc *Cache) GetLastPosition(name string) (gtid string, err error)
- func (vc *Cache) GetTableSQL(ddl isql.CreateTable) (sqls []string)
- func (vc *Cache) GetTablesCacheInfo(debug bool) string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is main struct to store cached events and vertica server params
func (*Cache) ApplyEvent ¶
ApplyEvent receive events to store in vertica
func (*Cache) GetBotInterfaces ¶
GetBotInterfaces return handlers for bot realisations
func (*Cache) GetDropSQL ¶
GetDropSQL return drop statement
func (*Cache) GetHTTPInterfaces ¶
func (vc *Cache) GetHTTPInterfaces(skip chan string) map[string]func(w http.ResponseWriter, r *http.Request)
GetHTTPInterfaces return http handlers
func (*Cache) GetLastPosition ¶
GetLastPosition return existed gtid set in vsql if exist
func (*Cache) GetTableSQL ¶
func (vc *Cache) GetTableSQL(ddl isql.CreateTable) (sqls []string)
GetTableSQL return create table statement in vsql
func (*Cache) GetTablesCacheInfo ¶
GetTablesCacheInfo return current state of cache
Click to show internal directories.
Click to hide internal directories.