Documentation ¶
Index ¶
- Constants
- type Bootstrapper
- type HTTPBootstrapper
- type KubernetesBootstrapper
- type MockRouter
- func (m *MockRouter) Advertise(ctx context.Context, keys []string) error
- func (m *MockRouter) LookupKey(key string) ([]netip.AddrPort, bool)
- func (m *MockRouter) Ready() (bool, error)
- func (m *MockRouter) Resolve(ctx context.Context, key string, allowSelf bool, count int) (<-chan netip.AddrPort, error)
- type P2PRouter
- func (r *P2PRouter) Advertise(ctx context.Context, keys []string) error
- func (r *P2PRouter) Close() error
- func (r *P2PRouter) Ready() (bool, error)
- func (r *P2PRouter) Resolve(ctx context.Context, key string, allowSelf bool, count int) (<-chan netip.AddrPort, error)
- func (r *P2PRouter) Run(ctx context.Context) error
- type Router
Constants ¶
View Source
const KeyTTL = 10 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
type Bootstrapper interface { Run(ctx context.Context, id string) error Get() (*peer.AddrInfo, error) }
func NewKubernetesBootstrapper ¶
func NewKubernetesBootstrapper(cs kubernetes.Interface, namespace, name string) Bootstrapper
type HTTPBootstrapper ¶
type HTTPBootstrapper struct {
// contains filtered or unexported fields
}
func NewHTTPBootstrapper ¶
func NewHTTPBootstrapper(addr, peer string) *HTTPBootstrapper
type KubernetesBootstrapper ¶
type KubernetesBootstrapper struct {
// contains filtered or unexported fields
}
type MockRouter ¶
type MockRouter struct {
// contains filtered or unexported fields
}
func NewMockRouter ¶
func (*MockRouter) Advertise ¶
func (m *MockRouter) Advertise(ctx context.Context, keys []string) error
func (*MockRouter) Ready ¶
func (m *MockRouter) Ready() (bool, error)
Click to show internal directories.
Click to hide internal directories.