Documentation
¶
Overview ¶
Package registry implements extra error handling over MeshAPI request
Index ¶
- type Registry
- func (r *Registry) Configure(token string, id uuid.UUID, peerID uuid.UUID, peerInfo mesh.PeerUpdateRequest) error
- func (r *Registry) List(token string, self uuid.UUID) (resp mesh.MachinePeers, err error)
- func (r *Registry) Local(token string) (mesh.Machines, error)
- func (r *Registry) Map(token string, self uuid.UUID) (resp *mesh.MachineMap, err error)
- func (r *Registry) NotifyNewTransfer(token string, self uuid.UUID, peer uuid.UUID, fileName string, fileCount int, ...) error
- func (r *Registry) Register(token string, self mesh.Machine) (*mesh.Machine, error)
- func (r *Registry) SetNotificationSubject(pub events.Publisher[any])
- func (r *Registry) Unpair(token string, self uuid.UUID, peer uuid.UUID) error
- func (r *Registry) Unregister(token string, self uuid.UUID) error
- func (r *Registry) Update(token string, id uuid.UUID, info mesh.MachineUpdateRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry structure holds necessary data to execute API calls
func NewRegistry ¶
NewRegistry create new Registry instance
func (*Registry) Configure ¶
func (r *Registry) Configure( token string, id uuid.UUID, peerID uuid.UUID, peerInfo mesh.PeerUpdateRequest, ) error
Configure interaction with specific peer.
func (*Registry) NotifyNewTransfer ¶
func (*Registry) SetNotificationSubject ¶
func (*Registry) Unregister ¶
Unregister Peer from the mesh network.
Click to show internal directories.
Click to hide internal directories.