Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserTestCORSMiddleware ¶
BrowserTestCORSMiddleware keeps the example server usable from browser-based demos. It is intentionally permissive because this binary is a local sample server.
Types ¶
type ServerComponents ¶
type ServerComponents struct {
Pool *pgxpool.Pool
SyncService *oversync.SyncService
Auth *exampleauth.TokenAuth
Handler http.Handler
Logger *slog.Logger
// contains filtered or unexported fields
}
func SetupServer ¶
func SetupServer(config *ServerConfig) (*ServerComponents, error)
func (*ServerComponents) Close ¶
func (sc *ServerComponents) Close()
Click to show internal directories.
Click to hide internal directories.