querier

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Unlicense Imports: 10 Imported by: 0

Documentation

Overview

Package querier contains library functions for MicroDB querier.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle() error
	Close() error
}

Handler represents a data origin querier.

func MySQLHandler

func MySQLHandler(host, port, user, password, database, table string, sc stan.Conn) (Handler, error)

MySQLHandler returns a new instance of querier for MySQL-based data origin.

type MySQLQuerier

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

MySQLQuerier represents a MySQL-based data origin querier.

func (*MySQLQuerier) Close

func (m *MySQLQuerier) Close() error

Close closes all connections that the handler uses.

func (*MySQLQuerier) Handle

func (m *MySQLQuerier) Handle() error

Handle starts the subscriber for handling write and direct read queries.

Jump to

Keyboard shortcuts

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