Documentation ¶
Index ¶
- func AuthenticateDeleteRequest(r *http.Request, v *[]string) (eggsID string, statusErr *logging.StatusError)
- func AuthenticateIndividualPostRequest(r *http.Request, b []byte, v ...*string) (eggsID string, statusErr *logging.StatusError)
- func AuthenticatePostRequest[V any](r *http.Request, b []byte, v *V) (eggsID string, statusErr *logging.StatusError)
- func AuthenticateRequestOnly(r *http.Request) (eggsID string, statusErr *logging.StatusError)
- func AuthenticateSpecificUser(r *http.Request) (userStub queries.UserStub, se *logging.StatusError)
- func CommitMutating(t *testing.T, r *http.Request, execute HTTPImplementer, token string, ...)
- func CommitToggling(t *testing.T, r *http.Request, execute HTTPImplementer, token string, ...)
- func Handle(endpoint string, m Methods)
- func HandleCORSPreflight(w io.Writer, r *http.Request, _ []byte) *logging.StatusError
- func HandleMethod(m HTTPImplementer, w http.ResponseWriter, r *http.Request)
- func HandleWebsocket(endpoint string, method WebSocketEstablisher)
- func ReturnMethodNotAllowed(w io.Writer, r *http.Request, _ []byte) *logging.StatusError
- func UserStubFromToken(r *http.Request) (userStub queries.UserStub, statusErr *logging.StatusError)
- type HTTPImplementer
- type Methods
- type WebSocketEstablisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatePostRequest ¶
func AuthenticateRequestOnly ¶
func AuthenticateRequestOnly(r *http.Request) (eggsID string, statusErr *logging.StatusError)
func CommitMutating ¶
func CommitToggling ¶
func HandleCORSPreflight ¶
func HandleMethod ¶
func HandleMethod(m HTTPImplementer, w http.ResponseWriter, r *http.Request)
func HandleWebsocket ¶
func HandleWebsocket(endpoint string, method WebSocketEstablisher)
func ReturnMethodNotAllowed ¶
func UserStubFromToken ¶
Types ¶
type HTTPImplementer ¶
type Methods ¶
type Methods struct { GET HTTPImplementer POST HTTPImplementer PUT HTTPImplementer DELETE HTTPImplementer }
type WebSocketEstablisher ¶
type WebSocketEstablisher = func(http.ResponseWriter, *http.Request) *logging.StatusError
Click to show internal directories.
Click to hide internal directories.