Documentation ¶
Overview ¶
Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021-2024 Thorben Krüger (thorben.krueger@ovgu.de)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021-2024 Thorben Krüger (thorben.krueger@ovgu.de)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func NewSelectorClient(client *Client) extra.Selector
- func NewServer(selector extra.MultiSelector) (*rpc.Server, error)
- type Client
- type IDMsg
- type IDServer
- type Path
- type SelectorClient
- func (s *SelectorClient) Close() error
- func (s *SelectorClient) Initialize(local, remote pan.UDPAddr, paths []*pan.Path)
- func (s *SelectorClient) Path() *pan.Path
- func (s *SelectorClient) PathDown(fp pan.PathFingerprint, pi pan.PathInterface)
- func (s *SelectorClient) Refresh(paths []*pan.Path)
- func (s *SelectorClient) SetPreferences(prefs map[string]string) error
- type SelectorMsg
- type SelectorServer
- func (s *SelectorServer) Close(args, resp *SelectorMsg) error
- func (s *SelectorServer) Initialize(args, resp *SelectorMsg) error
- func (s *SelectorServer) Path(args, resp *SelectorMsg) error
- func (s *SelectorServer) PathDown(args, resp *SelectorMsg) error
- func (s *SelectorServer) Refresh(args, resp *SelectorMsg) error
- func (s *SelectorServer) SetPreferences(args, resp *SelectorMsg) error
Constants ¶
This section is empty.
Variables ¶
var ( DefaultDaemonAddress = &net.UnixAddr{ Name: "/tmp/scion-pan-rpc.sock", Net: "unix", } ErrDeref = errors.New("can not dereference Nil value") )
Functions ¶
func NewSelectorClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Path ¶
type Path struct { Source pan.IA Destination pan.IA Metadata *pan.PathMetadata Fingerprint pan.PathFingerprint //ForwardingPath pan.ForwardingPath Expiry time.Time }
func NewPathFrom ¶
type SelectorClient ¶
type SelectorClient struct {
// contains filtered or unexported fields
}
func (*SelectorClient) Close ¶
func (s *SelectorClient) Close() error
func (*SelectorClient) Initialize ¶
func (s *SelectorClient) Initialize(local, remote pan.UDPAddr, paths []*pan.Path)
func (*SelectorClient) Path ¶
func (s *SelectorClient) Path() *pan.Path
func (*SelectorClient) PathDown ¶
func (s *SelectorClient) PathDown(fp pan.PathFingerprint, pi pan.PathInterface)
func (*SelectorClient) Refresh ¶
func (s *SelectorClient) Refresh(paths []*pan.Path)
func (*SelectorClient) SetPreferences ¶
func (s *SelectorClient) SetPreferences(prefs map[string]string) error
type SelectorMsg ¶
type SelectorServer ¶
type SelectorServer struct {
// contains filtered or unexported fields
}
SelectorServer is the RPC-facing server part (the one with the rigit function signatures)
func NewSelectorServer ¶
func NewSelectorServer(selector extra.MultiSelector) *SelectorServer
func (*SelectorServer) Close ¶
func (s *SelectorServer) Close(args, resp *SelectorMsg) error
func (*SelectorServer) Initialize ¶
func (s *SelectorServer) Initialize(args, resp *SelectorMsg) error
func (*SelectorServer) Path ¶
func (s *SelectorServer) Path(args, resp *SelectorMsg) error
func (*SelectorServer) PathDown ¶
func (s *SelectorServer) PathDown(args, resp *SelectorMsg) error
func (*SelectorServer) Refresh ¶
func (s *SelectorServer) Refresh(args, resp *SelectorMsg) error
func (*SelectorServer) SetPreferences ¶
func (s *SelectorServer) SetPreferences(args, resp *SelectorMsg) error