MCPcopy Create free account
hub / github.com/eventure/hide.client.linux / NewRingLog

Function NewRingLog

control/ringLog.go:15–15  ·  view source on GitHub ↗
( lines int, tee io.Writer )

Source from the content-addressed store, hash-verified

13}
14
15func NewRingLog( lines int, tee io.Writer ) ( r *RingLog ) { return &RingLog{ ring: ring.New( lines ), tee: tee} }
16
17func ( ringLog *RingLog ) Write( b []byte ) ( n int, err error ) {
18 if ringLog.tee != nil { n, err = ringLog.tee.Write( b ) }

Callers 1

InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected