net

package
v0.0.0-...-ec5001f Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityTagCommand

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

func NewEntityTagCommand

func NewEntityTagCommand(entity, tagName, tagValue string) *EntityTagCommand

func (*EntityTagCommand) Entity

func (self *EntityTagCommand) Entity() string

func (*EntityTagCommand) SetTag

func (self *EntityTagCommand) SetTag(name, value string) *EntityTagCommand

func (*EntityTagCommand) String

func (self *EntityTagCommand) String() string

func (*EntityTagCommand) Tags

func (self *EntityTagCommand) Tags() map[string]string

type Float32

type Float32 float32

func (Float32) Float64

func (self Float32) Float64() float64

func (Float32) Int64

func (self Float32) Int64() int64

func (Float32) String

func (self Float32) String() string

type Float64

type Float64 float64

func (Float64) Float64

func (self Float64) Float64() float64

func (Float64) Int64

func (self Float64) Int64() int64

func (Float64) String

func (self Float64) String() string

type Int16

type Int16 int16

func (Int16) Float64

func (self Int16) Float64() float64

func (Int16) Int64

func (self Int16) Int64() int64

func (Int16) String

func (self Int16) String() string

type Int32

type Int32 int32

func (Int32) Float64

func (self Int32) Float64() float64

func (Int32) Int64

func (self Int32) Int64() int64

func (Int32) String

func (self Int32) String() string

type Int64

type Int64 int64

func (Int64) Float64

func (self Int64) Float64() float64

func (Int64) Int64

func (self Int64) Int64() int64

func (Int64) String

func (self Int64) String() string

type MessageCommand

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

func NewMessageCommand

func NewMessageCommand(entity, message string) *MessageCommand

func (*MessageCommand) Entity

func (self *MessageCommand) Entity() string

func (*MessageCommand) Message

func (self *MessageCommand) Message() string

func (*MessageCommand) SetEntity

func (self *MessageCommand) SetEntity(entity string) *MessageCommand

func (*MessageCommand) SetMessage

func (self *MessageCommand) SetMessage(message string) *MessageCommand

func (*MessageCommand) SetTag

func (self *MessageCommand) SetTag(name, value string) *MessageCommand

func (*MessageCommand) SetTimestamp

func (self *MessageCommand) SetTimestamp(timestamp Millis) *MessageCommand

func (*MessageCommand) String

func (self *MessageCommand) String() string

func (*MessageCommand) TagValue

func (self *MessageCommand) TagValue(name string) string

func (*MessageCommand) Tags

func (self *MessageCommand) Tags() map[string]string

func (*MessageCommand) Timestamp

func (self *MessageCommand) Timestamp() *Millis

type Millis

type Millis uint64

type NetworkConn

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

func DialTimeout

func DialTimeout(protocol, hostport string, timeout time.Duration, bufferSize int) (*NetworkConn, error)

func (*NetworkConn) Close

func (self *NetworkConn) Close()

func (*NetworkConn) EntityTag

func (self *NetworkConn) EntityTag(entityTagCommand *EntityTagCommand) error

func (*NetworkConn) Flush

func (self *NetworkConn) Flush() error

func (*NetworkConn) Message

func (self *NetworkConn) Message(messageCommand *MessageCommand) error

func (*NetworkConn) Property

func (self *NetworkConn) Property(propertyCommand *PropertyCommand) error

func (*NetworkConn) Series

func (self *NetworkConn) Series(seriesCommand *SeriesCommand) error

type Number

type Number interface {
	String() string
	Float64() float64
	Int64() int64
}

type PropertyCommand

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

func NewPropertyCommand

func NewPropertyCommand(propType, entity, tagKey, tagVal string) *PropertyCommand

func (*PropertyCommand) Entity

func (self *PropertyCommand) Entity() string

func (*PropertyCommand) Key

func (self *PropertyCommand) Key() map[string]string

func (*PropertyCommand) PropType

func (self *PropertyCommand) PropType() string

func (*PropertyCommand) SetAllTags

func (self *PropertyCommand) SetAllTags(tags map[string]string) *PropertyCommand

func (*PropertyCommand) SetKey

func (self *PropertyCommand) SetKey(key map[string]string) *PropertyCommand

func (*PropertyCommand) SetKeyPart

func (self *PropertyCommand) SetKeyPart(name, value string) *PropertyCommand

func (*PropertyCommand) SetTag

func (self *PropertyCommand) SetTag(name, value string) *PropertyCommand

func (*PropertyCommand) SetTimestamp

func (self *PropertyCommand) SetTimestamp(timestamp Millis) *PropertyCommand

func (*PropertyCommand) String

func (self *PropertyCommand) String() string

func (*PropertyCommand) Tags

func (self *PropertyCommand) Tags() map[string]string

func (*PropertyCommand) Timestamp

func (self *PropertyCommand) Timestamp() *Millis

type SeriesCommand

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

func NewSeriesCommand

func NewSeriesCommand(entity, metricName string, metricValue Number) *SeriesCommand

func (*SeriesCommand) Entity

func (self *SeriesCommand) Entity() string

func (*SeriesCommand) Metrics

func (self *SeriesCommand) Metrics() map[string]Number

func (*SeriesCommand) SetMetricValue

func (self *SeriesCommand) SetMetricValue(metric string, value Number) *SeriesCommand

func (*SeriesCommand) SetTag

func (self *SeriesCommand) SetTag(tag, value string) *SeriesCommand

func (*SeriesCommand) SetTimestamp

func (self *SeriesCommand) SetTimestamp(timestamp Millis) *SeriesCommand

func (*SeriesCommand) String

func (self *SeriesCommand) String() string

func (*SeriesCommand) Tags

func (self *SeriesCommand) Tags() map[string]string

func (*SeriesCommand) Timestamp

func (self *SeriesCommand) Timestamp() *Millis

type Uint16

type Uint16 uint16

func (Uint16) Float64

func (self Uint16) Float64() float64

func (Uint16) Int64

func (self Uint16) Int64() int64

func (Uint16) String

func (self Uint16) String() string

type Uint32

type Uint32 uint32

func (Uint32) Float64

func (self Uint32) Float64() float64

func (Uint32) Int64

func (self Uint32) Int64() int64

func (Uint32) String

func (self Uint32) String() string

type Uint64

type Uint64 uint64

func (Uint64) Float64

func (self Uint64) Float64() float64

func (Uint64) Int64

func (self Uint64) Int64() int64

func (Uint64) String

func (self Uint64) String() string

Jump to

Keyboard shortcuts

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