Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPort is the port the reflector server listens on if not passed in. DefaultPort = 5566 // DefaultTimeout is the default timeout to read or write the next message DefaultTimeout = 5 * time.Second )
Variables ¶
View Source
var ErrBlobExists = errors.Base("blob exists on server")
ErrBlobExists is a default error for when a blob already exists on the reflector server.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an instance of a client connected to a server.
type Server ¶
type Server struct { Timeout time.Duration // timeout to read or write next message StatLogger *log.Logger // logger to log stats StatReportFrequency time.Duration // how often to log stats // contains filtered or unexported fields }
Server is and instance of the reflector server. It houses the blob store and listener.
Click to show internal directories.
Click to hide internal directories.