aclient.go 474 B

123456789101112131415161718192021222324252627282930
  1. package aclient
  2. import "imuslab.com/arozos/mod/network/mdns"
  3. /*
  4. ArOZ Cluster Client Module
  5. author: tobychui
  6. This module is designed to connect this host to a remote host and act as a client
  7. for sending commands
  8. */
  9. type Aclient struct {
  10. Options AclientOption
  11. }
  12. type AclientOption struct {
  13. MDNS *mdns.MDNSHost
  14. }
  15. func NewClient(option AclientOption) *Aclient {
  16. return &Aclient{
  17. Options: option,
  18. }
  19. }
  20. func (a *Aclient) DiscoverServices(serviceType string) {
  21. }