builders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSBuilder

type CORSBuilder struct {
	// contains filtered or unexported fields
}

func NewCorsBuilder

func NewCorsBuilder(app types.IApplication) *CORSBuilder

func (*CORSBuilder) Apply

func (cb *CORSBuilder) Apply() types.IApplication

func (*CORSBuilder) Credentials

func (cb *CORSBuilder) Credentials(allow bool) types.ICORSBuilder

func (*CORSBuilder) Headers

func (cb *CORSBuilder) Headers(headers ...string) types.ICORSBuilder

func (*CORSBuilder) Methods

func (cb *CORSBuilder) Methods(methods ...string) types.ICORSBuilder

func (*CORSBuilder) Origins

func (cb *CORSBuilder) Origins(origins ...string) types.ICORSBuilder

type CSRFBuilder

type CSRFBuilder struct {
	// contains filtered or unexported fields
}

func NewCSRFBuilder

func NewCSRFBuilder(app types.IApplication) *CSRFBuilder

func (*CSRFBuilder) Apply

func (c *CSRFBuilder) Apply() types.IApplication

func (*CSRFBuilder) CookieDomain

func (c *CSRFBuilder) CookieDomain(domain string) types.ICSRFBuilder

func (*CSRFBuilder) CookieHTTPOnly

func (c *CSRFBuilder) CookieHTTPOnly(httpOnly bool) types.ICSRFBuilder

func (*CSRFBuilder) CookieName

func (c *CSRFBuilder) CookieName(name string) types.ICSRFBuilder

func (*CSRFBuilder) CookiePath

func (c *CSRFBuilder) CookiePath(path string) types.ICSRFBuilder

func (*CSRFBuilder) CookieSameSite

func (c *CSRFBuilder) CookieSameSite(sameSite csrf.SameSiteMode) types.ICSRFBuilder

func (*CSRFBuilder) CookieSecure

func (c *CSRFBuilder) CookieSecure(secure bool) types.ICSRFBuilder

func (*CSRFBuilder) SecretKey

func (c *CSRFBuilder) SecretKey(key string) types.ICSRFBuilder

func (*CSRFBuilder) TokenLookup

func (c *CSRFBuilder) TokenLookup(lookup string) types.ICSRFBuilder

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewDi

func (*Container) Apply

func (d *Container) Apply() types.IApplication

func (*Container) Provide

func (c *Container) Provide(constructor interface{}) types.IContainerBuilder

type HTTPSRedirectBuilder

type HTTPSRedirectBuilder struct {
	// contains filtered or unexported fields
}

func NewHTTPSRedirectBuilder

func NewHTTPSRedirectBuilder(app types.IApplication) *HTTPSRedirectBuilder

func (*HTTPSRedirectBuilder) Apply

type Include

type Include struct {
	// contains filtered or unexported fields
}

func NewInclude

func NewInclude(app types.IApplication) *Include

func (*Include) Add

func (i *Include) Add(rtrg func(types.IAPIRouter)) types.IIncludeBuilder

func (*Include) Apply

func (i *Include) Apply() types.IApplication

type JWTBearer

type JWTBearer struct {
	// contains filtered or unexported fields
}

func NewJWTBearer

func NewJWTBearer(app types.IApplication) *JWTBearer

func (*JWTBearer) Algorithms

func (jb *JWTBearer) Algorithms(algorithms []string) types.IJWTBuilder

func (*JWTBearer) Apply

func (jb *JWTBearer) Apply() types.IApplication

func (*JWTBearer) Audience

func (jb *JWTBearer) Audience(audience []string) types.IJWTBuilder

func (*JWTBearer) Issue

func (jb *JWTBearer) Issue(issuer []string) types.IJWTBuilder

func (*JWTBearer) Key

func (jb *JWTBearer) Key(key string) types.IJWTBuilder

type RateLimiterBuilder

type RateLimiterBuilder struct {
	// contains filtered or unexported fields
}

func NewRateLimiterBuilder

func NewRateLimiterBuilder(app types.IApplication) *RateLimiterBuilder

func (*RateLimiterBuilder) Apply

func (*RateLimiterBuilder) Duration

func (*RateLimiterBuilder) ReqLimit

func (rt *RateLimiterBuilder) ReqLimit(maxRequests int) types.IRateLimiterBuilder

type SanitizationBuilder

type SanitizationBuilder struct {
	// contains filtered or unexported fields
}

func NewSanitizationBuilder

func NewSanitizationBuilder(app types.IApplication) *SanitizationBuilder

func (*SanitizationBuilder) Apply

Jump to

Keyboard shortcuts

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