handler

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncResult

type AsyncResult struct {
	Res unsafe.Pointer
	N   int
}

type Caller

type Caller struct {
	QueryResult chan *AsyncResult
	FetchResult chan *AsyncResult
}

func NewCaller

func NewCaller() *Caller

func (*Caller) FetchCall

func (c *Caller) FetchCall(res unsafe.Pointer, numOfRows int)

func (*Caller) QueryCall

func (c *Caller) QueryCall(res unsafe.Pointer, code int)

type Handler

type Handler struct {
	Handler cgo.Handle
	Caller  *Caller
}

type HandlerPool

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

func NewHandlerPool

func NewHandlerPool(count int) *HandlerPool

func (*HandlerPool) Get

func (c *HandlerPool) Get() *Handler

func (*HandlerPool) Put

func (c *HandlerPool) Put(handler *Handler)

Jump to

Keyboard shortcuts

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