{"modulePath":"github.com/viant/datly","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package loaddata\n\nPackage loaddata provides an ordinary component handler for typed AFS data. Configuration and the storage capability use normal handler input DI.\n\n## Functions\n\n```go\nfunc New[T any]() xhandler.Contract[Input, Output[T]]\n```\n\n## Types\n\n```go\ntype Config struct {\n\tURL         string `json:\"url\"`\n\tFormat      string `json:\"format\"`\n\tCompression string `json:\"compression,omitempty\"`\n\t// MaxBytes bounds decoded bytes, including decompressed data. Zero is unlimited.\n\tMaxBytes int64 `json:\"maxBytes,omitempty\"`\n}\n```\n\n```go\ntype Handler[T any] struct{}\n```\n\n```go\nfunc (*Handler[T]) Exec(ctx context.Context, _ xhandler.Session, input *Input, output *Output[T]) error\n```\n\n```go\ntype Input struct {\n\tConfig  *Config        `parameter:\"Config,kind=const,in=LoadData,required\"`\n\tStorage storage.Opener `bind:\"kind=afs,required\"`\n}\n```\n\n```go\nfunc (i *Input) Init(context.Context) error\n```\n\n```go\ntype Output[T any] struct{ Data []T }\n```\n\n","path":"github.com/viant/datly/runtime/handler/loaddata","name":"loaddata","synopsis":"Package loaddata provides an ordinary component handler for typed AFS data.","isRedistributable":true}
