Documentation ¶
Overview ¶
Package handler is the handler for the `micro network dns` command
Index ¶
- type DNS
- func (d *DNS) Advertise(ctx context.Context, req *dns.AdvertiseRequest, rsp *dns.AdvertiseResponse) error
- func (d *DNS) Remove(ctx context.Context, req *dns.RemoveRequest, rsp *dns.RemoveResponse) error
- func (d *DNS) Resolve(ctx context.Context, req *dns.ResolveRequest, rsp *dns.ResolveResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNS ¶
type DNS struct {
// contains filtered or unexported fields
}
DNS handles incoming gRPC requests
func (*DNS) Advertise ¶
func (d *DNS) Advertise(ctx context.Context, req *dns.AdvertiseRequest, rsp *dns.AdvertiseResponse) error
Advertise adds records of network nodes to DNS
func (*DNS) Remove ¶
func (d *DNS) Remove(ctx context.Context, req *dns.RemoveRequest, rsp *dns.RemoveResponse) error
Remove removes itself from DNS
func (*DNS) Resolve ¶
func (d *DNS) Resolve(ctx context.Context, req *dns.ResolveRequest, rsp *dns.ResolveResponse) error
Resolve looks up matching records and returns any matches
Click to show internal directories.
Click to hide internal directories.