topologyv1

package
v0.0.0-...-e01fbee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_service_topology_v1_topology_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cache

type Cache struct {

	// The time to live (ttl) for an item in cache, the default is 2 hours (7200 seconds).
	Ttl *durationpb.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// Set the batch insert size for setCache() operations. By default this is set to 1.
	// Depending on your database resource configuration and the number of items to cache,
	// you can tune this value to improve write performance.
	BatchInsertSize int32 `protobuf:"varint,2,opt,name=batch_insert_size,json=batchInsertSize,proto3" json:"batch_insert_size,omitempty"`
	// Defaults to 10 seconds.
	// A periodic flush of the queued up items for batch inserts, ensuring that items do not get
	// stuck in the batch waiting for batch_insert_size to be reached.
	BatchInsertFlush *durationpb.Duration `protobuf:"bytes,3,opt,name=batch_insert_flush,json=batchInsertFlush,proto3" json:"batch_insert_flush,omitempty"`
	// contains filtered or unexported fields
}

To enable topology caching you must specific the cache configuration below, by default it is disabled.

func (*Cache) Descriptor deprecated

func (*Cache) Descriptor() ([]byte, []int)

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetBatchInsertFlush

func (x *Cache) GetBatchInsertFlush() *durationpb.Duration

func (*Cache) GetBatchInsertSize

func (x *Cache) GetBatchInsertSize() int32

func (*Cache) GetTtl

func (x *Cache) GetTtl() *durationpb.Duration

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

func (x *Cache) ProtoReflect() protoreflect.Message

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

func (*Cache) Validate

func (m *Cache) Validate() error

Validate checks the field values on Cache with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Cache) ValidateAll

func (m *Cache) ValidateAll() error

ValidateAll checks the field values on Cache with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CacheMultiError, or nil if none found.

type CacheMultiError

type CacheMultiError []error

CacheMultiError is an error wrapping multiple validation errors returned by Cache.ValidateAll() if the designated constraints aren't met.

func (CacheMultiError) AllErrors

func (m CacheMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CacheMultiError) Error

func (m CacheMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CacheValidationError

type CacheValidationError struct {
	// contains filtered or unexported fields
}

CacheValidationError is the validation error returned by Cache.Validate if the designated constraints aren't met.

func (CacheValidationError) Cause

func (e CacheValidationError) Cause() error

Cause function returns cause value.

func (CacheValidationError) Error

func (e CacheValidationError) Error() string

Error satisfies the builtin error interface

func (CacheValidationError) ErrorName

func (e CacheValidationError) ErrorName() string

ErrorName returns error name.

func (CacheValidationError) Field

func (e CacheValidationError) Field() string

Field function returns field value.

func (CacheValidationError) Key

func (e CacheValidationError) Key() bool

Key function returns key value.

func (CacheValidationError) Reason

func (e CacheValidationError) Reason() string

Reason function returns reason value.

type Config

type Config struct {
	Cache *Cache `protobuf:"bytes,1,opt,name=cache,proto3" json:"cache,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCache

func (x *Config) GetCache() *Cache

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigValidationError

type ConfigValidationError struct {
	// contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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