stream

package
v0.0.0-...-1b09624 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleReadFunc

type HandleReadFunc func(engine *drivers.MysqlEngine) (interface{}, error)

type HandleWriteFunc

type HandleWriteFunc func(engine *drivers.MysqlEngine) error

type MysqlStreamImpl

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

func (*MysqlStreamImpl) Read

func (srv *MysqlStreamImpl) Read(fn HandleReadFunc) (ret interface{}, err error)

func (*MysqlStreamImpl) Write

func (srv *MysqlStreamImpl) Write(fn HandleWriteFunc) (err error)

type StreamRepo

type StreamRepo interface {
	Read(HandleReadFunc) (interface{}, error)
	Write(HandleWriteFunc) error
}

func BuildMysqlStreamRepo

func BuildMysqlStreamRepo(ctx *context.BaseContext, database string, conf config.MysqlMachineConfig) (StreamRepo, error)

Jump to

Keyboard shortcuts

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