package middleware
import (
"net/http"
)
package webhooks
import (
"bytes"
"crypto/hmac"
"crypto/sha256"
package hotpath
import "testing"
func BenchmarkParse(b *testing.B) {
b.ReportAllocs()
package api_test
import (
"encoding/json"
"net/http"
"net/http/httptest"
package flags
import (
"context"
"encoding/json"
"sync/atomic"
package files
import (
"context"
"time"
package store
import (
"context"
"github.com/jackc/pgx/v5"
ALTER TABLE documents ADD COLUMN version BIGINT NOT NULL DEFAULT 0;
package auth
import "golang.org/x/crypto/bcrypt"
func HashPassword(pw string, cost int) ([]byte, error) {
if cost == 0 {
package config
import (
"errors"
"os"
"strconv"
package api
import (
"encoding/json"
"net/http"
)
package api
import "net/http"
func ETag(w http.ResponseWriter, r *http.Request, etag string) bool {
w.Header().Set("ETag", etag)