flw/structs.go (39 lines of code) (raw):

/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ package flw import ( "time" ) // Client is a customizable abstraction for calling FLW protocol functions. type Client struct { Timeout time.Duration } // ServerStats is the information pulled from the Zookeeper `stat` command. type ServerStats struct { Sent int64 Received int64 NodeCount int64 MinLatency int64 AvgLatency float64 MaxLatency int64 Connections int64 Outstanding int64 Epoch int32 Counter int32 BuildTime time.Time Mode Mode Version string } // ServerClient is the information for a single Zookeeper client and its session. // This is used to parse/extract the output of the `cons` command. type ServerClient struct { Queued int64 Received int64 Sent int64 SessionID int64 Lcxid int64 Lzxid int64 Timeout int32 LastLatency int32 MinLatency int32 AvgLatency int32 MaxLatency int32 Established time.Time LastResponse time.Time Addr string LastOperation string // maybe? }