Documentation
¶
Index ¶
- type DefaultFileFilter
- type FileFilter
- type MetadataAdapter
- type Servent
- func (s *Servent) AddServer(domain string) error
- func (s *Servent) Changed(pths []p2p.Path)
- func (s *Servent) Created(pths []p2p.Path)
- func (s *Servent) GetClient(domain string) (*p2p.Client, error)
- func (s *Servent) GetServers() []string
- func (s *Servent) Query(terms bson.Document, maxPerConn int) (res []bson.Element, err error)
- func (s *Servent) RemoveClient(domain string)
- func (s *Servent) RemoveServer(domain string)
- func (s *Servent) Removed(pths []p2p.Path)
- func (s *Servent) ServeP2P(ctx context.Context, l net.Listener)
- func (s *Servent) ServeP2PConn(c net.Conn)
- type ServentConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFileFilter ¶
type DefaultFileFilter string
type FileFilter ¶
type MetadataAdapter ¶
type Servent ¶
type Servent struct { ServentConfig // contains filtered or unexported fields }
func (*Servent) GetServers ¶
func (*Servent) RemoveClient ¶
func (*Servent) RemoveServer ¶
func (*Servent) ServeP2PConn ¶
type ServentConfig ¶
type ServentConfig struct { FS p2p.FileSystemEx TS p2p.TargetStore MDA MetadataAdapter FF FileFilter Arena proto.Allocator KP proto.KeyPair Dialer proxy.Dialer }
func (*ServentConfig) Create ¶
func (cfg *ServentConfig) Create() *Servent
Click to show internal directories.
Click to hide internal directories.