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 ¶
type Option func(o *serverOptions)
Option modifies server option value
func WithAuthorizeNSERegistryClient ¶
func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registry.NetworkServiceEndpointRegistryClient) Option
WithAuthorizeNSERegistryClient sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSERegistryServer ¶
func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registry.NetworkServiceEndpointRegistryServer) Option
WithAuthorizeNSERegistryServer sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSRegistryClient ¶
func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registry.NetworkServiceRegistryClient) Option
WithAuthorizeNSRegistryClient sets authorization NetworkServiceRegistry chain element
func WithAuthorizeNSRegistryServer ¶
func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registry.NetworkServiceRegistryServer) Option
WithAuthorizeNSRegistryServer sets authorization NetworkServiceRegistry chain element
func WithDefaultExpiration ¶
WithDefaultExpiration sets the default expiration for endpoints
func WithDialOptions ¶
func WithDialOptions(dialOptions ...grpc.DialOption) Option
WithDialOptions sets grpc.DialOptions for the server
func WithProxyRegistryURL ¶
WithProxyRegistryURL sets URL to reach the proxy registry