v1

package
v0.0.0-...-b5b7d89 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gateway_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) Descriptor() ([]byte, []int)

Deprecated: Use Cors.ProtoReflect.Descriptor instead.

func (*Cors) GetAllowCredentials

func (x *Cors) GetAllowCredentials() bool

func (*Cors) GetAllowHeaders

func (x *Cors) GetAllowHeaders() []string

func (*Cors) GetAllowMethods

func (x *Cors) GetAllowMethods() []string

func (*Cors) GetAllowOrigins

func (x *Cors) GetAllowOrigins() []string

func (*Cors) GetAllowPrivateNetwork

func (x *Cors) GetAllowPrivateNetwork() bool

func (*Cors) GetExposeHeaders

func (x *Cors) GetExposeHeaders() []string

func (*Cors) GetMaxAge

func (x *Cors) GetMaxAge() *durationpb.Duration

func (*Cors) ProtoMessage

func (*Cors) ProtoMessage()

func (*Cors) ProtoReflect

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

func (*Cors) Reset

func (x *Cors) Reset()

func (*Cors) String

func (x *Cors) String() string

Jump to

Keyboard shortcuts

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