memory

package
v1.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 19 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, 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 WithAuthorizeNSERegistryServer added in v1.6.0

func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registry.NetworkServiceEndpointRegistryServer) Option

WithAuthorizeNSERegistryServer sets authorization NetworkServiceEndpointRegistry chain element

func WithAuthorizeNSRegistryServer added in v1.6.0

func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registry.NetworkServiceRegistryServer) Option

WithAuthorizeNSRegistryServer sets authorization NetworkServiceRegistry chain element

func WithDialOptions added in v1.6.0

func WithDialOptions(dialOptions ...grpc.DialOption) Option

WithDialOptions sets grpc.DialOptions for the server

func WithExpireDuration added in v1.6.0

func WithExpireDuration(expireDuration time.Duration) Option

WithExpireDuration sets expire duration 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