streams

package
v1.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 6 Imported by: 1

README

streams Package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	io.Writer
	io.StringWriter
	xmlrpc.Sampler
	// contains filtered or unexported fields
}

func Open added in v1.2.1

func Open(url *url.URL, entity, sampler string, stream ...string) (s *Stream, err error)

Open a stream for writing. `stream` is an optional stream name and additional arguments are ignored. If no stream name is supplied then the sampler name is used for the stream name.

func (Stream) Write

func (s Stream) Write(data []byte) (n int, err error)

Write data bytes to stream. Whitespace is trimmed.

func (Stream) WriteString

func (s Stream) WriteString(data string) (n int, err error)

Write string to stream. Whitespace is trimmed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL