MCPcopy Create free account
hub / github.com/CodisLabs/codis / String

Method String

pkg/proxy/session.go:51–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (s *Session) String() string {
52 o := &struct {
53 Ops int64 `json:"ops"`
54 CreateUnix int64 `json:"create"`
55 LastOpUnix int64 `json:"lastop,omitempty"`
56 RemoteAddr string `json:"remote"`
57 }{
58 s.Ops, s.CreateUnix, s.LastOpUnix,
59 s.Conn.RemoteAddr(),
60 }
61 b, _ := json.Marshal(o)
62 return string(b)
63}
64
65func NewSession(sock net.Conn, config *Config) *Session {
66 c := redis.NewConn(sock,

Callers

nothing calls this directly

Calls 1

RemoteAddrMethod · 0.80

Tested by

no test coverage detected