_3_functional_options

package
v0.0.0-...-24b7180 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*StatsClient)

func Port

func Port(port int) Option

func SampleRate

func SampleRate(rate int) Option

func SendBuffer

func SendBuffer(size int) Option

func Tags

func Tags(tags []string) Option

func ValidateKeys

func ValidateKeys(validate bool) Option

type StatsClient

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

func NewStatsDClient

func NewStatsDClient(host string, options ...Option) *StatsClient

Jump to

Keyboard shortcuts

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