memory

package
v1.13.2-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Overview

Package memory provides registry chain based on memory chain elements

Index

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

func WithDefaultExpiration(d time.Duration) Option

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

func WithProxyRegistryURL(proxyRegistryURL *url.URL) Option

WithProxyRegistryURL sets URL to reach the proxy registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL