Documentation ¶
Index ¶
- func LookupIPv4(endpoint string) string
- type Backend
- type ConfigService
- type DefaultPublicKeyIDSynthesizer
- type Discovery
- type Identity
- type IdentityService
- type KVS
- type NetworkMember
- type Resolver
- type ResolverService
- type Service
- func (r *Service) AddPublicKeyExtractor(publicKeyExtractor driver.PublicKeyExtractor) error
- func (r *Service) AddResolver(name string, domain string, addresses map[string]string, aliases []string, ...) (view.Identity, error)
- func (r *Service) Bind(longTerm view.Identity, ephemeral view.Identity) error
- func (r *Service) Endpoint(party view.Identity) (map[driver.PortName]string, error)
- func (r *Service) ExtractPKI(id []byte) []byte
- func (r *Service) GetIdentity(endpoint string, pkID []byte) (view.Identity, error)
- func (r *Service) IsBoundTo(a view.Identity, b view.Identity) bool
- func (r *Service) Resolve(party view.Identity) (string, view.Identity, map[driver.PortName]string, []byte, error)
- func (r *Service) SetPublicKeyIDSynthesizer(publicKeyIDSynthesizer driver.PublicKeyIDSynthesizer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupIPv4 ¶
Types ¶
type ConfigService ¶
type DefaultPublicKeyIDSynthesizer ¶ added in v0.4.0
type DefaultPublicKeyIDSynthesizer struct{}
func (DefaultPublicKeyIDSynthesizer) PublicKeyID ¶ added in v0.4.0
func (d DefaultPublicKeyIDSynthesizer) PublicKeyID(key any) []byte
type Discovery ¶
type Discovery interface {
Peers() []NetworkMember
}
type IdentityService ¶
type NetworkMember ¶
NetworkMember is a peer's representation
type Resolver ¶ added in v0.4.0
type ResolverService ¶ added in v0.4.0
type ResolverService struct {
// contains filtered or unexported fields
}
func NewResolverService ¶
func NewResolverService(config ConfigService, backend Backend, is IdentityService) (*ResolverService, error)
NewResolverService returns a new instance of the view-sdk endpoint resolverService
func (*ResolverService) LoadResolvers ¶ added in v0.4.0
func (r *ResolverService) LoadResolvers() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService returns a new instance of the view-sdk endpoint service
func (*Service) AddPublicKeyExtractor ¶ added in v0.4.0
func (r *Service) AddPublicKeyExtractor(publicKeyExtractor driver.PublicKeyExtractor) error
func (*Service) AddResolver ¶
func (*Service) ExtractPKI ¶ added in v0.4.0
func (*Service) GetIdentity ¶ added in v0.4.0
func (*Service) SetPublicKeyIDSynthesizer ¶ added in v0.4.0
func (r *Service) SetPublicKeyIDSynthesizer(publicKeyIDSynthesizer driver.PublicKeyIDSynthesizer)
Click to show internal directories.
Click to hide internal directories.