Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Connector
- func (cr *Connector) Close() error
- func (cr *Connector) Connect(ctx Context) func(Context, io.Reader, io.WriteCloser) error
- func (cr *Connector) CreateInstance(ctx Context, config service.InstanceConfig, state []byte) (service.Instance, error)
- func (cr *Connector) Discoverable(Context) bool
- func (cr *Connector) Properties() service.Properties
Constants ¶
View Source
const ( DefaultMaxConns = 3 DefaultBufSize = 32768 )
Variables ¶
View Source
var DefaultConfig = Config{ MaxConns: DefaultMaxConns, BufSize: DefaultBufSize, }
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) Close ¶
Close causes currently blocked and future Connect calls to return nil. Established connections will not be closed.
func (*Connector) Connect ¶
Connect allocates a new I/O stream. The returned function is to be used to transfer data between a connection and the program instance. If it's non-nil, a connection was established.
func (*Connector) CreateInstance ¶
func (*Connector) Discoverable ¶
func (*Connector) Properties ¶
func (cr *Connector) Properties() service.Properties
Click to show internal directories.
Click to hide internal directories.