Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerEndpoint ¶
ServerEndpoint is a channel sink and returns the URL of the server as well as a completion channel.
func TextFilter ¶
TextFilter applies a basic filter on the contents of a string chan, escaping HTML, and newline characters
Types ¶
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
A Browser holds the environment to manipulate various browsers.
func NewBrowser ¶
New creates a new browser environment
type FilterFunc ¶
FilterFunc applies some filter on a channel of byte slices.
type ReaderCollection ¶
type ReaderCollection struct {
// contains filtered or unexported fields
}
ReaderCollection implements io.ReaderCloser on a collection of files
func NewReaderCollection ¶
func NewReaderCollection(args []string) (*ReaderCollection, error)
NewReaderCollection creates a new ReaderCollection with file descriptors in the same nature as cat.
func (*ReaderCollection) Close ¶
func (r *ReaderCollection) Close() error
Close closes up each of the files and returns the error of the one that failed last.
func (*ReaderCollection) MakeFilterableChan ¶
func (r *ReaderCollection) MakeFilterableChan() <-chan []byte
MakeFilterableChan returns a byte slice channel appropriate for use in a FilterFunc.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server allows content to be served on a random unused port.
func NewServer ¶
func NewServer(h http.HandlerFunc) (*Server, error)
NewServer creates a new server instance and mounts a single http.HandleFunc to "/". NewServer does not use the net/http singleton ServeMux.