proxy

package
v0.0.0-...-89416fd Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartProxy

func StartProxy(ctx context.Context, qp *QueryProxy)

func StopProxy

func StopProxy(ctx context.Context, qp *QueryProxy)

Types

type Actor

type Actor interface {
	Send(ctx context.Context, q *gdb.Query)
}

type CSVReader

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

func NewCSVReader

func NewCSVReader(worker Actor) *CSVReader

func (*CSVReader) Read

func (f *CSVReader) Read(ctx context.Context, query *gdb.Query)

type QueryProxy

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

func NewQueryProxy

func NewQueryProxy() (*QueryProxy, error)

func (*QueryProxy) Send

func (qp *QueryProxy) Send(ctx context.Context, query *gdb.Query)

type Table

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

func NewTable

func NewTable(opts *gdb.TableOpts) *Table

func (*Table) Execute

func (va *Table) Execute(_ context.Context, query *gdb.Query)

func (*Table) Stop

func (va *Table) Stop()

type WorkPool

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

func NewWorkPool

func NewWorkPool(inbox chan *gdb.Query) *WorkPool

func (*WorkPool) Execute

func (w *WorkPool) Execute(ctx context.Context, query *gdb.Query)

func (*WorkPool) Send

func (w *WorkPool) Send(ctx context.Context, query *gdb.Query)

func (*WorkPool) Start

func (w *WorkPool) Start(ctx context.Context)

func (*WorkPool) WaitAndStop

func (w *WorkPool) WaitAndStop(ctx context.Context)

type Worker

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

func (*Worker) Start

func (s *Worker) Start(ctx context.Context)

func (*Worker) Stop

func (s *Worker) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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