Versions in this module Expand all Collapse all v0 v0.25.0 May 18, 2024 v0.24.0 Jan 13, 2024 Changes in this version + var FilterUserAgent = config.GenFlag[bool]("behavior.user_agent_filter", true, ...) + type API struct + func New(base *sudoapi.BaseAPI) *API + func (s *API) Handler() http.Handler + func (s *API) MustBeAdmin(next http.Handler) http.Handler + func (s *API) MustBeAuthed(next http.Handler) http.Handler + func (s *API) MustBeProposer(next http.Handler) http.Handler + func (s *API) MustBeVisitor(next http.Handler) http.Handler + func (s *API) SetupSession(next http.Handler) http.Handler + type Assets struct + func NewAssets(base *sudoapi.BaseAPI) *Assets + func (s *Assets) AssetsRouter() http.Handler + func (s *Assets) ServeAttachment(w http.ResponseWriter, r *http.Request) + func (s *Assets) ServeContestLeaderboard(w http.ResponseWriter, r *http.Request) + func (s *Assets) ServeProblemArchive() http.HandlerFunc + func (s *Assets) ServeSubtest(w http.ResponseWriter, r *http.Request) + func (s *Assets) ServeTestInput(w http.ResponseWriter, r *http.Request) + func (s *Assets) ServeTestOutput(w http.ResponseWriter, r *http.Request)