Documentation ¶
Overview ¶
Package memory provides registry chain based on memory chain elements
Index ¶
- func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, options ...Option) registryserver.Registry
- type Option
- func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registry.NetworkServiceEndpointRegistryClient) Option
- func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registry.NetworkServiceEndpointRegistryServer) Option
- func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registry.NetworkServiceRegistryClient) Option
- func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registry.NetworkServiceRegistryServer) Option
- func WithDefaultExpiration(d time.Duration) Option
- func WithDialOptions(dialOptions ...grpc.DialOption) Option
- func WithProxyRegistryURL(proxyRegistryURL *url.URL) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, options ...Option) registryserver.Registry
NewServer creates new registry server based on memory storage
Types ¶
type Option ¶ added in v1.6.0
type Option func(o *serverOptions)
Option modifies server option value
func WithAuthorizeNSERegistryClient ¶ added in v1.7.0
func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registry.NetworkServiceEndpointRegistryClient) Option
WithAuthorizeNSERegistryClient sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSERegistryServer ¶ added in v1.6.0
func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registry.NetworkServiceEndpointRegistryServer) Option
WithAuthorizeNSERegistryServer sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSRegistryClient ¶ added in v1.7.0
func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registry.NetworkServiceRegistryClient) Option
WithAuthorizeNSRegistryClient sets authorization NetworkServiceRegistry chain element
func WithAuthorizeNSRegistryServer ¶ added in v1.6.0
func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registry.NetworkServiceRegistryServer) Option
WithAuthorizeNSRegistryServer sets authorization NetworkServiceRegistry chain element
func WithDefaultExpiration ¶ added in v1.7.1
WithDefaultExpiration sets the default expiration for endpoints
func WithDialOptions ¶ added in v1.6.0
func WithDialOptions(dialOptions ...grpc.DialOption) Option
WithDialOptions sets grpc.DialOptions for the server
func WithProxyRegistryURL ¶ added in v1.6.0
WithProxyRegistryURL sets URL to reach the proxy registry