Documentation
¶
Overview ¶
Package server provides HTTP server functionality for sql-http-proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor[R any] interface { Execute(ctx context.Context, params map[string]any, opts executor.Options) (*R, error) }
Executor is the interface for query/mutation executors.
type MutationHandler ¶
type MutationHandler = baseHandler[executor.MutationResult]
MutationHandler handles HTTP requests for mutations.
func NewMutationHandler ¶
NewMutationHandler creates a new MutationHandler. db can be nil if mock is configured.
type QueryHandler ¶
type QueryHandler = baseHandler[executor.ExecuteResult]
QueryHandler handles HTTP requests for queries.
func NewQueryHandler ¶
NewQueryHandler creates a new QueryHandler. db can be nil if mock is configured.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.