Documentation
¶
Overview ¶
Package routers @APIVersion 1.70.0 @Title OpenAgent RESTful API @Description Swagger Docs of OpenAgent Backend API @Contact admin@casibase.org @SecurityDefinition AccessToken apiKey Authorization header @Schemes https,http @ExternalDocs Find out more about OpenAgent @ExternalDocsUrl https://casibase.org/
Index ¶
- func AfterRecordMessage(ctx *context.Context)
- func AuthzFilter(ctx *context.Context)
- func AutoSigninFilter(ctx *context.Context)
- func CacheControlFilter(ctx *context.Context)
- func CorsFilter(ctx *context.Context)
- func GetSessionUser(ctx *context.Context) *casdoorsdk.User
- func HstsFilter(ctx *context.Context)
- func PrometheusFilter(ctx *context.Context)
- func RecordMessage(ctx *context.Context)
- func SecureCookieFilter(ctx *context.Context)
- func StaticFilter(ctx *context.Context)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterRecordMessage ¶
func AuthzFilter ¶
func AutoSigninFilter ¶
func CacheControlFilter ¶
CacheControlFilter adds Cache-Control headers to prevent caching of sensitive API endpoints This ensures that sensitive data (like passwords, user chats, messages) are not cached by intermediary proxies, SSL terminators, or browsers
func CorsFilter ¶
func GetSessionUser ¶
func GetSessionUser(ctx *context.Context) *casdoorsdk.User
func HstsFilter ¶
HstsFilter adds HTTP Strict Transport Security header to HTTPS responses This ensures browsers only access the website using HTTPS
func PrometheusFilter ¶
func RecordMessage ¶
func SecureCookieFilter ¶
SecureCookieFilter ensures session cookies have the Secure flag set This is necessary when running behind a reverse proxy that handles HTTPS