Documentation ¶
Index ¶
- Variables
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (x *Cache) GetBatchInsertFlush() *durationpb.Duration
- func (x *Cache) GetBatchInsertSize() int32
- func (x *Cache) GetTtl() *durationpb.Duration
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (x *Cache) String() string
- func (m *Cache) Validate() error
- func (m *Cache) ValidateAll() error
- type CacheMultiError
- type CacheValidationError
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetCache() *Cache
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
Constants ¶
This section is empty.
Variables ¶
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) GetBatchInsertFlush ¶
func (x *Cache) GetBatchInsertFlush() *durationpb.Duration
func (*Cache) GetBatchInsertSize ¶
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) Validate ¶
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 ¶
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) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
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 ¶
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.