iptpool

package
v0.0.0-...-38fe691 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMaxIdle = 32
)

Functions

This section is empty.

Types

type CreateFunc

type CreateFunc func() ScriptIpt

type EventFunc

type EventFunc func(ScriptIpt) error

type IptPool

type IptPool struct {
	OnCreate EventFunc
	// contains filtered or unexported fields
}

func NewIptPool

func NewIptPool(create CreateFunc) *IptPool

func (*IptPool) Get

func (pool *IptPool) Get() (ipt ScriptIpt)

func (*IptPool) Put

func (pool *IptPool) Put(ipt ScriptIpt)

type ScriptIpt

type ScriptIpt interface {
	Exec(name string, params interface{}) error
	Init(path string) error
	Final() error
	Bind(name string, item interface{}) error
}

Jump to

Keyboard shortcuts

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