mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
21 lines
318 B
Go
21 lines
318 B
Go
//go:build android
|
|
|
|
package android
|
|
|
|
import "fmt"
|
|
|
|
type PeerRoutes struct {
|
|
routes []string
|
|
}
|
|
|
|
func (p *PeerRoutes) Get(i int) (string, error) {
|
|
if i < 0 || i >= len(p.routes) {
|
|
return "", fmt.Errorf("%d is out of range", i)
|
|
}
|
|
return p.routes[i], nil
|
|
}
|
|
|
|
func (p *PeerRoutes) Size() int {
|
|
return len(p.routes)
|
|
}
|