File: channel.go

package info (click to toggle)
gh 2.23.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,040 kB
  • sloc: asm: 6,813; ansic: 258; sh: 100; makefile: 96
file content (34 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package test

import (
	"io"
	"net"
)

type Channel struct {
	conn net.Conn
}

func (c *Channel) Read(data []byte) (int, error) {
	return c.conn.Read(data)
}

func (c *Channel) Write(data []byte) (int, error) {
	return c.conn.Write(data)
}

func (c *Channel) Close() error {
	return c.conn.Close()
}

func (c *Channel) CloseWrite() error {
	return nil
}

func (c *Channel) SendRequest(name string, wantReply bool, payload []byte) (bool, error) {
	return false, nil
}

func (c *Channel) Stderr() io.ReadWriter {
	return nil
}