{"modulePath":"github.com/castingcode/tuicast","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package memory\n\nPackage memory provides an in-memory transport for automation and tests.\n\n## Types\n\n```go\ntype Connector struct {\n\t// contains filtered or unexported fields\n}\n```\nConnector creates independent in-memory connections using a shared handler.\n\n```go\nfunc NewConnector(handler Handler) (*Connector, error)\n```\nNewConnector creates an in-memory connector.\n\n```go\nfunc (c *Connector) Connect(context.Context) (tuicast.SessionOpener, error)\n```\nConnect creates an in-memory connection.\n\n```go\ntype Handler func(context.Context, io.ReadWriteCloser)\n```\nHandler runs the remote side of each in-memory session. Returning closes that side of the session.\n\n","path":"github.com/castingcode/tuicast/memory","name":"memory","synopsis":"Package memory provides an in-memory transport for automation and tests.","isRedistributable":true}
