Documentation ¶
Index ¶
- func NewLink(db *jsondb.DB[*node.Node], outbound *outbound, manager *manager) *link
- func NewManager(m *node.Manager) *manager
- func NewOutbound(db *jsondb.DB[*node.Node], mamanager *manager) *outbound
- type HashKey
- type Nodes
- func (n *Nodes) Get(_ context.Context, s *wrapperspb.StringValue) (*point.Point, error)
- func (n *Nodes) Latency(c context.Context, req *latency.Requests) (*latency.Response, error)
- func (n *Nodes) Manager(context.Context, *emptypb.Empty) (*node.Manager, error)
- func (n *Nodes) Now(context.Context, *emptypb.Empty) (*gn.NowResp, error)
- func (n *Nodes) Outbound() *outbound
- func (n *Nodes) Remove(_ context.Context, s *wrapperspb.StringValue) (*emptypb.Empty, error)
- func (n *Nodes) Save(c context.Context, p *point.Point) (*point.Point, error)
- func (n *Nodes) SetRuleTags(f func() iter.Seq[string])
- func (f *Nodes) Subscribe() *Subscribe
- func (f *Nodes) Tag() gn.TagServer
- func (n *Nodes) Use(c context.Context, s *gn.UseReq) (*point.Point, error)
- type Subscribe
- func (s *Subscribe) Get(context.Context, *emptypb.Empty) (*gn.GetLinksResp, error)
- func (s *Subscribe) Remove(_ context.Context, l *gn.LinkReq) (*emptypb.Empty, error)
- func (s *Subscribe) Save(_ context.Context, l *gn.SaveLinkReq) (*emptypb.Empty, error)
- func (s *Subscribe) Update(_ context.Context, req *gn.LinkReq) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
Types ¶
type Nodes ¶
type Nodes struct { gn.UnimplementedNodeServer // contains filtered or unexported fields }
func (*Nodes) Get ¶
func (n *Nodes) Get(_ context.Context, s *wrapperspb.StringValue) (*point.Point, error)
func (*Nodes) Remove ¶
func (n *Nodes) Remove(_ context.Context, s *wrapperspb.StringValue) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.