Documentation
¶
Index ¶
- type Server
- func (server *Server) ForwardPort(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
- func (server *Server) ForwardPortSilent(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
- func (server *Server) GetGateway(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
- func (server *Server) RemoveForwarding(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
Server - RPC server
func (*Server) ForwardPort ¶
func (server *Server) ForwardPort(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
ForwardPort - upnp.ForwardPort RPC handler
func (*Server) ForwardPortSilent ¶
func (server *Server) ForwardPortSilent(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
ForwardPortSilent - upnp.ForwardPortSilent RPC handler
func (*Server) GetGateway ¶
func (server *Server) GetGateway(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
GetGateway - upnp.GetGateway RPC handler
func (*Server) RemoveForwarding ¶
func (server *Server) RemoveForwarding(ctx context.Context, req *upnpProto.GeneralRequest) (*upnpProto.GeneralResponse, error)
RemoveForwarding - upnp.RemovePortForward RPC handler
Click to show internal directories.
Click to hide internal directories.