Documentation ¶
Overview ¶
Package quotaservice_configs is a generated protocol buffer package.
It is generated from these files:
protos/config/configs.proto
It has these top-level messages:
ServiceConfig NamespaceConfig BucketConfig
Index ¶
- type BucketConfig
- func (*BucketConfig) Descriptor() ([]byte, []int)
- func (m *BucketConfig) GetFillRate() int64
- func (m *BucketConfig) GetMaxDebtMillis() int64
- func (m *BucketConfig) GetMaxIdleMillis() int64
- func (m *BucketConfig) GetMaxTokensPerRequest() int64
- func (m *BucketConfig) GetName() string
- func (m *BucketConfig) GetNamespace() string
- func (m *BucketConfig) GetSize() int64
- func (m *BucketConfig) GetWaitTimeoutMillis() int64
- func (*BucketConfig) ProtoMessage()
- func (m *BucketConfig) Reset()
- func (m *BucketConfig) String() string
- type NamespaceConfig
- func (*NamespaceConfig) Descriptor() ([]byte, []int)
- func (m *NamespaceConfig) GetBuckets() map[string]*BucketConfig
- func (m *NamespaceConfig) GetDefaultBucket() *BucketConfig
- func (m *NamespaceConfig) GetDynamicBucketTemplate() *BucketConfig
- func (m *NamespaceConfig) GetMaxDynamicBuckets() int32
- func (m *NamespaceConfig) GetName() string
- func (*NamespaceConfig) ProtoMessage()
- func (m *NamespaceConfig) Reset()
- func (m *NamespaceConfig) String() string
- type ServiceConfig
- func (*ServiceConfig) Descriptor() ([]byte, []int)
- func (m *ServiceConfig) GetDate() int64
- func (m *ServiceConfig) GetGlobalDefaultBucket() *BucketConfig
- func (m *ServiceConfig) GetNamespaces() map[string]*NamespaceConfig
- func (m *ServiceConfig) GetUser() string
- func (m *ServiceConfig) GetVersion() int32
- func (*ServiceConfig) ProtoMessage()
- func (m *ServiceConfig) Reset()
- func (m *ServiceConfig) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketConfig ¶
type BucketConfig struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty" yaml:"name"` Namespace string `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty" yaml:"namespace"` Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty" yaml:"size"` FillRate int64 `protobuf:"varint,4,opt,name=fill_rate,json=fillRate" json:"fill_rate,omitempty" yaml:"fill_rate"` WaitTimeoutMillis int64 `` /* 135-byte string literal not displayed */ MaxIdleMillis int64 `protobuf:"varint,6,opt,name=max_idle_millis,json=maxIdleMillis" json:"max_idle_millis,omitempty" yaml:"max_idle_millis"` MaxDebtMillis int64 `protobuf:"varint,7,opt,name=max_debt_millis,json=maxDebtMillis" json:"max_debt_millis,omitempty" yaml:"max_debt_millis"` MaxTokensPerRequest int64 `` /* 146-byte string literal not displayed */ }
func (*BucketConfig) Descriptor ¶
func (*BucketConfig) Descriptor() ([]byte, []int)
func (*BucketConfig) GetFillRate ¶
func (m *BucketConfig) GetFillRate() int64
func (*BucketConfig) GetMaxDebtMillis ¶
func (m *BucketConfig) GetMaxDebtMillis() int64
func (*BucketConfig) GetMaxIdleMillis ¶
func (m *BucketConfig) GetMaxIdleMillis() int64
func (*BucketConfig) GetMaxTokensPerRequest ¶
func (m *BucketConfig) GetMaxTokensPerRequest() int64
func (*BucketConfig) GetName ¶
func (m *BucketConfig) GetName() string
func (*BucketConfig) GetNamespace ¶
func (m *BucketConfig) GetNamespace() string
func (*BucketConfig) GetSize ¶
func (m *BucketConfig) GetSize() int64
func (*BucketConfig) GetWaitTimeoutMillis ¶
func (m *BucketConfig) GetWaitTimeoutMillis() int64
func (*BucketConfig) ProtoMessage ¶
func (*BucketConfig) ProtoMessage()
func (*BucketConfig) Reset ¶
func (m *BucketConfig) Reset()
func (*BucketConfig) String ¶
func (m *BucketConfig) String() string
type NamespaceConfig ¶
type NamespaceConfig struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty" yaml:"name"` DefaultBucket *BucketConfig `protobuf:"bytes,2,opt,name=default_bucket,json=defaultBucket" json:"default_bucket,omitempty" yaml:"default_bucket"` DynamicBucketTemplate *BucketConfig `` /* 150-byte string literal not displayed */ MaxDynamicBuckets int32 `` /* 135-byte string literal not displayed */ Buckets map[string]*BucketConfig `` /* 149-byte string literal not displayed */ }
func (*NamespaceConfig) Descriptor ¶
func (*NamespaceConfig) Descriptor() ([]byte, []int)
func (*NamespaceConfig) GetBuckets ¶
func (m *NamespaceConfig) GetBuckets() map[string]*BucketConfig
func (*NamespaceConfig) GetDefaultBucket ¶
func (m *NamespaceConfig) GetDefaultBucket() *BucketConfig
func (*NamespaceConfig) GetDynamicBucketTemplate ¶
func (m *NamespaceConfig) GetDynamicBucketTemplate() *BucketConfig
func (*NamespaceConfig) GetMaxDynamicBuckets ¶
func (m *NamespaceConfig) GetMaxDynamicBuckets() int32
func (*NamespaceConfig) GetName ¶
func (m *NamespaceConfig) GetName() string
func (*NamespaceConfig) ProtoMessage ¶
func (*NamespaceConfig) ProtoMessage()
func (*NamespaceConfig) Reset ¶
func (m *NamespaceConfig) Reset()
func (*NamespaceConfig) String ¶
func (m *NamespaceConfig) String() string
type ServiceConfig ¶
type ServiceConfig struct { GlobalDefaultBucket *BucketConfig `` /* 142-byte string literal not displayed */ Namespaces map[string]*NamespaceConfig `` /* 158-byte string literal not displayed */ // Metadata for the configuration Version int32 `protobuf:"varint,3,opt,name=version" json:"version,omitempty" yaml:"version"` User string `protobuf:"bytes,4,opt,name=user" json:"user,omitempty" yaml:"user"` Date int64 `protobuf:"varint,5,opt,name=date" json:"date,omitempty" yaml:"date"` }
Representations of configuration elements, for persisting and sharing across nodes.
func (*ServiceConfig) Descriptor ¶
func (*ServiceConfig) Descriptor() ([]byte, []int)
func (*ServiceConfig) GetDate ¶
func (m *ServiceConfig) GetDate() int64
func (*ServiceConfig) GetGlobalDefaultBucket ¶
func (m *ServiceConfig) GetGlobalDefaultBucket() *BucketConfig
func (*ServiceConfig) GetNamespaces ¶
func (m *ServiceConfig) GetNamespaces() map[string]*NamespaceConfig
func (*ServiceConfig) GetUser ¶
func (m *ServiceConfig) GetUser() string
func (*ServiceConfig) GetVersion ¶
func (m *ServiceConfig) GetVersion() int32
func (*ServiceConfig) ProtoMessage ¶
func (*ServiceConfig) ProtoMessage()
func (*ServiceConfig) Reset ¶
func (m *ServiceConfig) Reset()
func (*ServiceConfig) String ¶
func (m *ServiceConfig) String() string
Click to show internal directories.
Click to hide internal directories.