Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore is the contact chore for nodes announcing themselves to their trusted satellites
architecture: Chore
type Config ¶
type Config struct { Interval time.Duration `help:"how frequently the node contact chore should run" releaseDefault:"1h" devDefault:"30s"` // MaxSleep should remain at default value to decrease traffic congestion to satellite MaxSleep time.Duration `help:"maximum duration to wait before pinging satellites" releaseDefault:"45m" devDefault:"0s" hidden:"true"` }
Config contains configurable parameters for contact chore
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint implements the contact service Endpoints
architecture: Endpoint
func NewEndpoint ¶
NewEndpoint returns a new contact service endpoint
func (*Endpoint) PingNode ¶
func (endpoint *Endpoint) PingNode(ctx context.Context, req *pb.ContactPingRequest) (_ *pb.ContactPingResponse, err error)
PingNode provides an easy way to verify a node is online and accepting requests
Click to show internal directories.
Click to hide internal directories.