streams

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

README

streams Package

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerError = errors.New("error from server (HTTP Status > 299)")

ErrServerError makes it a little easier for the caller to check the underlying HTTP response

Functions

This section is empty.

Types

type RESTStream added in v1.7.2

type RESTStream struct {
	// contains filtered or unexported fields
}

func NewRESTStream added in v1.7.2

func NewRESTStream(url *url.URL, entity, sampler, streamname string) (stream RESTStream, err error)

func (RESTStream) Write added in v1.7.2

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

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, options ...xmlrpc.Options) (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