Documentation ¶
Index ¶
- func NewLink(outbound *outbound, manager *manager, links map[string]*subscribe.Link) *link
- func NewManager(m *node.Manager) *manager
- func NewOutbound(tcp, udp *point.Point, mamanager *manager) *outbound
- type FileStore
- type Nodes
- func (n *Nodes) Conn(addr proxy.Address) (net.Conn, error)
- func (n *Nodes) Do(req *http.Request) (*http.Response, error)
- 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, *wrapperspb.StringValue) (*node.Manager, error)
- func (n *Nodes) Now(_ context.Context, r *grpcnode.NowReq) (*point.Point, error)
- func (n *Nodes) PacketConn(addr proxy.Address) (net.PacketConn, error)
- 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) Use(c context.Context, s *grpcnode.UseReq) (*point.Point, error)
- type Subscribe
- func (s *Subscribe) Get(context.Context, *emptypb.Empty) (*grpcnode.GetLinksResp, error)
- func (s *Subscribe) Remove(_ context.Context, l *grpcnode.LinkReq) (*emptypb.Empty, error)
- func (s *Subscribe) Save(_ context.Context, l *grpcnode.SaveLinkReq) (*emptypb.Empty, error)
- func (s *Subscribe) Update(_ context.Context, req *grpcnode.LinkReq) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewOutbound ¶
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
type Nodes ¶
type Nodes struct { grpcnode.UnimplementedNodeServer // contains filtered or unexported fields }
func (*Nodes) Get ¶
func (n *Nodes) Get(_ context.Context, s *wrapperspb.StringValue) (*point.Point, error)
func (*Nodes) Manager ¶
func (n *Nodes) Manager(context.Context, *wrapperspb.StringValue) (*node.Manager, error)
func (*Nodes) PacketConn ¶
func (*Nodes) Remove ¶
func (n *Nodes) Remove(_ context.Context, s *wrapperspb.StringValue) (*emptypb.Empty, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.