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
- func NewTag(f *FileStore) gn.TagServer
- type FileStore
- type HashKey
- type Nodes
- func (n *Nodes) Conn(ctx context.Context, 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 *gn.NowReq) (*point.Point, error)
- func (n *Nodes) PacketConn(ctx context.Context, 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 *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)
- type TagKey
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 { gn.UnimplementedNodeServer proxy.EmptyDispatch // 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.