Documentation ¶
Index ¶
- Variables
- type Cors
- func (*Cors) Descriptor() ([]byte, []int)deprecated
- func (x *Cors) GetAllowCredentials() bool
- func (x *Cors) GetAllowHeaders() []string
- func (x *Cors) GetAllowMethods() []string
- func (x *Cors) GetAllowOrigins() []string
- func (x *Cors) GetAllowPrivateNetwork() bool
- func (x *Cors) GetExposeHeaders() []string
- func (x *Cors) GetMaxAge() *durationpb.Duration
- func (*Cors) ProtoMessage()
- func (x *Cors) ProtoReflect() protoreflect.Message
- func (x *Cors) Reset()
- func (x *Cors) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_middleware_cors_v1_cors_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cors ¶
type Cors struct { AllowCredentials bool `protobuf:"varint,1,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"` AllowOrigins []string `protobuf:"bytes,2,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"` AllowMethods []string `protobuf:"bytes,3,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"` AllowHeaders []string `protobuf:"bytes,4,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"` ExposeHeaders []string `protobuf:"bytes,5,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"` MaxAge *durationpb.Duration `protobuf:"bytes,6,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` AllowPrivateNetwork bool `protobuf:"varint,7,opt,name=allow_private_network,json=allowPrivateNetwork,proto3" json:"allow_private_network,omitempty"` // contains filtered or unexported fields }
Cors middleware config.
func (*Cors) Descriptor
deprecated
func (*Cors) GetAllowCredentials ¶
func (*Cors) GetAllowHeaders ¶
func (*Cors) GetAllowMethods ¶
func (*Cors) GetAllowOrigins ¶
func (*Cors) GetAllowPrivateNetwork ¶
func (*Cors) GetExposeHeaders ¶
func (*Cors) GetMaxAge ¶
func (x *Cors) GetMaxAge() *durationpb.Duration
func (*Cors) ProtoMessage ¶
func (*Cors) ProtoMessage()
func (*Cors) ProtoReflect ¶
func (x *Cors) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.