Documentation ¶
Index ¶
- func AddAuthRoute(method string, pattern string, handlerFunc http.HandlerFunc)
- func AddNotFoundHandler(handlerFunc http.HandlerFunc)
- func AddRoute(method string, pattern string, handlerFunc http.HandlerFunc)
- func ServeAdsHandler(w http.ResponseWriter, r *http.Request)
- func ServeFavIconHandler(w http.ResponseWriter, r *http.Request)
- func SessionFromContext(ctx context.Context) *sessions.Session
- type Vanguard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthRoute ¶
func AddAuthRoute(method string, pattern string, handlerFunc http.HandlerFunc)
AddAuthRoute adds an authenticated web handler to the route list this should be called by func init() within the views package
func AddNotFoundHandler ¶
func AddNotFoundHandler(handlerFunc http.HandlerFunc)
AddNotFoundHandler provides a 404 handler
func AddRoute ¶
func AddRoute(method string, pattern string, handlerFunc http.HandlerFunc)
AddRoute adds a non-authenticated web handler to the route list this should be called by func init() within the views package
func ServeAdsHandler ¶
func ServeAdsHandler(w http.ResponseWriter, r *http.Request)
ServeAdsHandler deals with ads.txt
func ServeFavIconHandler ¶
func ServeFavIconHandler(w http.ResponseWriter, r *http.Request)
ServeFavIconHandler deals with favicon.ico
Types ¶
type Vanguard ¶
type Vanguard struct { OutQueue *redisqueue.RedisQueue ESI *goesi.APIClient Db *sqlx.DB Cache *redis.Pool HTTPClient *http.Client Store *gsr.RediStore TokenStore *tokenstore.TokenStore Conservator *rpc.Client TokenAuthenticator *goesi.SSOAuthenticator SSOAuthenticator *goesi.SSOAuthenticator Verifier *oidc.IDTokenVerifier DiscordAuthenticator *discordauth.Authenticator // contains filtered or unexported fields }
func GlobalsFromContext ¶
GlobalsFromContext returns attached AppContext from a request.Context
func (*Vanguard) JWTVerify ¶
func (s *Vanguard) JWTVerify(token string) (*goesi.VerifyResponse, error)
JWTVerify validates jwt tokens and returns legacy VerifyResponse response
Click to show internal directories.
Click to hide internal directories.