Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyStarted error ErrAlreadyStarted = errors.New("server already started") // GraphiteTCPPort GraphiteTCPPort = 6123 // GraphiteTCPListenPortFlag for overriding the listen address GraphiteTCPListenPortFlag cli.IntFlag = cli.IntFlag{ Name: "graphite-tcp-port", Usage: "graphite TCP listen port", Value: GraphiteTCPPort, Destination: &GraphiteTCPPort, } // GraphiteUDPAddr GraphiteUDPPort = 6124 // GraphiteUDPListenAddrFlag for overriding the listen address GraphiteUDPListenPortFlag cli.IntFlag = cli.IntFlag{ Name: "graphite-udp-port", Usage: "graphite UDP listen port", Value: GraphiteUDPPort, Destination: &GraphiteUDPPort, } )
Functions ¶
func NewGraphite ¶
func NewGraphite(opts ...Option) *graphite
Types ¶
type Option ¶
type Option func(g *graphite) Option
func TCPListenPortOption ¶
func TCPListenerOption ¶
func TCPListenerOption(conn *net.TCPListener) Option
func UDPConnectionOption ¶
func UDPListenPortOption ¶
Click to show internal directories.
Click to hide internal directories.