{"modulePath":"github.com/viant/datly","version":"v0.39.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package handler\n\n## Functions\n\n```go\nfunc NewAuth(authService *auth.Service) hauth.Auth\n```\n\n## Types\n\n```go\ntype Auth struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (a *Auth) Authenticator(vendor hauth.Vendor) (hauth.Authenticator, error)\n```\n\n```go\nfunc (a *Auth) Signer() *signer.Service\n```\n\n```go\nfunc (a *Auth) Verifier() *verifier.Service\n```\n\n```go\ntype DBProvider struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *DBProvider) Db() (*sql.DB, error)\n```\n\n```go\ntype DbSource struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (d *DbSource) Db(_ context.Context) (*sql.DB, error)\n```\n\n```go\nfunc (d *DbSource) Dialect(ctx context.Context) (*info.Dialect, error)\n```\n\n```go\ntype Executor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewExecutor(aView *view.View, aSession *session.Session, opts ...Option) *Executor\n```\n\n```go\nfunc (o Executor) Clone(opts []Option) *options\n```\n\n```go\nfunc (e *Executor) Execute(ctx context.Context) error\n```\n\n```go\nfunc (e *Executor) ExpandAndExecute(ctx context.Context) (*executor.Session, error)\n```\n\n```go\nfunc (e *Executor) HandlerSession(ctx context.Context, opts ...Option) (*extension.Session, error)\n```\n\n```go\nfunc (e *Executor) NewHandlerSession(ctx context.Context, opts ...Option) (handler.Session, error)\n```\n\n```go\nfunc (o Executor) Options(opts []Option) []Option\n```\n\n```go\nfunc (e *Executor) Session(ctx context.Context) (*executor.Session, error)\n```\n\n```go\ntype Httper struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHttp(executor *Executor, resource *view.Resource) *Httper\n```\n\n```go\nfunc (h *Httper) FailWithCode(statusCode int, err error) error\n```\n\n```go\nfunc (h *Httper) NewRequest(ctx context.Context, opts ...hstate.Option) (*http.Request, error)\n```\n\n```go\nfunc (h *Httper) Redirect(ctx context.Context, route *dhttp.Route, request *http.Request) error\n```\n\n```go\nfunc (h *Httper) RequestOf(ctx context.Context, any interface{}) (*http.Request, error)\n```\n\n```go\ntype Option func(o *options)\n```\n\n```go\nfunc WithAuth(auth *auth.Service) Option\n```\n\n```go\nfunc WithEmbedFS(fs *embed.FS) Option\n```\n\n```go\nfunc WithLogger(logger logger.Logger) Option\n```\n\n```go\nfunc WithTypes(types ...*state.Type) Option\n```\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *Service) Allocate(ctx context.Context, tableName string, dest interface{}, selector string) error\n```\n\n```go\nfunc (s *Service) CanBatch(table string) bool\n```\n\n```go\nfunc (s *Service) CanBatchGlobally() bool\n```\n\n```go\nfunc (s *Service) Db(ctx context.Context) (*sql.DB, error)\n```\n\n```go\nfunc (s *Service) Delete(tableName string, data interface{}) error\n```\n\n```go\nfunc (s *Service) Dialect(ctx context.Context) (*info.Dialect, error)\n```\n\n```go\nfunc (s *Service) Execute(DML string, options ...sqlx.ExecutorOption) error\n```\n\n```go\nfunc (s *Service) Flush(ctx context.Context, tableName string) error\n```\n\n```go\nfunc (s *Service) Insert(tableName string, data interface{}) error\n```\n\n```go\nfunc (s *Service) Load(ctx context.Context, tableName string, data interface{}) error\n```\n\n```go\nfunc (s *Service) Read(ctx context.Context, dest interface{}, SQL string, params ...interface{}) error\n```\n\n```go\nfunc (s *Service) Tx(ctx context.Context) (*sql.Tx, error)\n```\n\n```go\nfunc (s *Service) Update(tableName string, data interface{}) error\n```\n\n```go\nfunc (s *Service) Validator() *validator.Service\n```\n\n```go\ntype Validator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v *Validator) Validate(ctx context.Context, any interface{}, options ...validator.Option) (*validator.Validation, error)\n```\n\n","path":"github.com/viant/datly/service/executor/handler","name":"handler","synopsis":"","isRedistributable":true}
