Documentation ¶
Index ¶
- Constants
- func PublishChannel(Conn net.Conn, Channel string, AddressURLs []string) error
- func Watch(ctx context.Context, Conn net.Conn, Channel string, PrefixMatch bool, ...) error
- type Config
- type ExternalSourcePeer
- type Peer
- type PeerInfo
- type Request
- type Response
- type Server
- func (s *Server) AddExternalSource(sourceName string, InfoMap []*PeerInfo)
- func (s *Server) Close() error
- func (s *Server) ListChannel(Channel string, PrefixMatch bool) []*PeerInfo
- func (s *Server) Serve(lis net.Listener) error
- func (s *Server) ServeConnection(c net.Conn)
- func (s *Server) UpdateExternalStorageTable(sourceName string, info *PeerInfo)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func PublishChannel ¶
PublishChannel publishes current peerinfo into the connection to the server. Returns any error encountered, the connection will stay alive after the publish is done.
Types ¶
type Config ¶
type Config struct { TracerFunc util.TracerFunc EvictExistingPeer bool }
type ExternalSourcePeer ¶ added in v0.2.33
type PeerInfo ¶
type Request ¶
type Response ¶
Click to show internal directories.
Click to hide internal directories.