Documentation ¶
Index ¶
- Variables
- type Settings
- func (m *Settings) Clone() proto.Message
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (m *Settings) Equal(that interface{}) bool
- func (x *Settings) GetAllowedVaryHeaders() []*v3.StringMatcher
- func (x *Settings) GetCachingServiceRef() *core.ResourceRef
- func (x *Settings) GetMaxPayloadSize() *wrapperspb.UInt32Value
- func (x *Settings) GetTimeout() *durationpb.Duration
- func (m *Settings) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *Settings) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_enterprise_options_caching_caching_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { // The basic reference for the service. Details name and namespace. CachingServiceRef *core.ResourceRef `protobuf:"bytes,1,opt,name=caching_service_ref,json=cachingServiceRef,proto3" json:"caching_service_ref,omitempty"` // A list of string matchers that state what headers are allowed to vary // and still be cached. Per upstream envoy allowed vary headers. AllowedVaryHeaders []*v3.StringMatcher `protobuf:"bytes,2,rep,name=allowed_vary_headers,json=allowedVaryHeaders,proto3" json:"allowed_vary_headers,omitempty"` // Connection timeout for retrieval from an sync cache Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // Max payload size to cache. If unset defaults to a reasonable value. // If explicitly set to 0 will prevent anything with a body from // being cached. MaxPayloadSize *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=max_payload_size,json=maxPayloadSize,proto3" json:"max_payload_size,omitempty"` // contains filtered or unexported fields }
func (*Settings) Descriptor
deprecated
func (*Settings) GetAllowedVaryHeaders ¶
func (x *Settings) GetAllowedVaryHeaders() []*v3.StringMatcher
func (*Settings) GetCachingServiceRef ¶
func (x *Settings) GetCachingServiceRef() *core.ResourceRef
func (*Settings) GetMaxPayloadSize ¶
func (x *Settings) GetMaxPayloadSize() *wrapperspb.UInt32Value
func (*Settings) GetTimeout ¶
func (x *Settings) GetTimeout() *durationpb.Duration
func (*Settings) HashUnique ¶ added in v1.18.0
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.