{"modulePath":"github.com/vscode-lcode/bash","version":"v0.0.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bash\n\n## Variables\n\n```go\nvar (\n\tErrStreamIDWrong   = fmt.Errorf(\"wrong stream id\")\n\tErrStreamIDExpired = fmt.Errorf(\"expired stream id\")\n\tErrStreamIDReused  = fmt.Errorf(\"stream id is be reused. %w\", ErrStreamIDExpired)\n)\n```\n\n```go\nvar (\n\tErrStreamOpenTimeout = fmt.Errorf(\"open stream timeout\")\n)\n```\n\n## Types\n\n```go\ntype Client struct {\n\tID       string\n\tEndpoint string\n\tConn     net.Conn\n\tTimeout  time.Duration\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(conn net.Conn) *Client\n```\n\n```go\nfunc (c *Client) Close() (err error)\n```\n\n```go\nfunc (c *Client) HandleConn(stream io.ReadWriteCloser) (err error)\n```\n\n```go\nfunc (c *Client) Run(cmd string) (result []byte, err error)\n```\n\n```go\nfunc (c *Client) Start(cmd string) (stream io.ReadWriteCloser, err error)\n```\n\n```go\ntype Header [12]byte\n```\n\n```go\nfunc (h *Header) ID() uint32\n```\n\n```go\nfunc (h *Header) MagicCode() uint32\n```\n\n```go\nfunc (h *Header) String() string\n```\n\n```go\nfunc (h *Header) Version() uint8\n```\n\n```go\ntype Session interface {\n\tStart(cmd string) (stream io.ReadWriteCloser, err error)\n\tRun(cmd string) (result []byte, err error)\n\tClose() error\n}\n```\n\n```go\ntype StreamHook struct {\n\tHeader\n\tStreamCh chan io.ReadWriteCloser\n\t// contains filtered or unexported fields\n}\n```\n\n","path":"github.com/vscode-lcode/bash","name":"bash","synopsis":"","isRedistributable":true}
