Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPort is the port the peer server listens on if not passed in. DefaultPort = 3333 // LbrycrdAddress to be used when paying for data. Not implemented yet. LbrycrdAddress = "bJxKvpD96kaJLriqVajZ7SaQTsWWyrGQct" )
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 ¶
This section is empty.
Types ¶
type Client ¶
Client is an instance of a client connected to a server.
func (*Client) Connect ¶
Connect connects to a specific clients and errors if it cannot be contacted.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an instance of a peer server that houses the listener and store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a blob store that gets blobs from a peer. It satisfies the store.BlobStore interface but cannot put or delete blobs.
func (*Store) CloseStore ¶
CloseStore closes the client that gets initialized when the store is initialized
Click to show internal directories.
Click to hide internal directories.