Documentation ¶
Index ¶
- Variables
- type Client
- type Geo
- type GeoBeacon
- type Peer
- type Usage
- func (u *Usage) AddService(svrType iface.ServiceType, meta map[string]string)
- func (u *Usage) Announce(services iface.Services, nodeId, clientNodeId string, signature []byte) (response.Response, error)
- func (u *Usage) Beacon(hostname, nodeId, clientNodeId string, signature []byte) iface.UsageBeacon
- func (u *Usage) Get(id string) (*iface.UsageReturn, error)
- func (u *Usage) Heartbeat(usage *iface.UsageData, hostname, nodeId, clientNodeId string, ...) (response.Response, error)
- func (u *Usage) List() ([]string, error)
- func (u *Usage) ListServiceId(name string) (response.Response, error)
- type UsageBeacon
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultUsageBeaconInterval = 30 * time.Second DefaultAnnounceBeaconInterval = 10 * time.Minute ErrorUsageBeaconStopped = errors.New("usage Stopped") )
View Source
var ( MinPeers = 0 MaxPeers = 2 DefaultGeoBeaconInterval = 5 * time.Minute ErrorGeoBeaconStopped = errors.New("geoBeacon Stopped") )
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { Id string Location iface.PeerLocation }
type Usage ¶
type Usage Client
func (*Usage) AddService ¶
func (u *Usage) AddService(svrType iface.ServiceType, meta map[string]string)
func (*Usage) Beacon ¶
func (u *Usage) Beacon(hostname, nodeId, clientNodeId string, signature []byte) iface.UsageBeacon
type UsageBeacon ¶
type UsageBeacon struct {
// contains filtered or unexported fields
}
func (*UsageBeacon) Start ¶
func (u *UsageBeacon) Start()
func (*UsageBeacon) Status ¶
func (u *UsageBeacon) Status() error
func (*UsageBeacon) Stop ¶
func (u *UsageBeacon) Stop()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.