Documentation
¶
Index ¶
- Variables
- func Bind[T any](c *Context) (T, error)
- func MustMigrate(db *DB, dir string)
- func Query[T any](db *DB, table string) *framework.TypedQuery[T]
- func Repo[T any](db *DB, table string) *framework.TypedQuery[T]
- type App
- type Cache
- type ConsumeOption
- type ConsumeOptions
- type Context
- type DB
- type Data
- type FileTransport
- type HandlerFunc
- type Job
- type JobHandler
- type Middleware
- type Migrator
- type Option
- func Dev() Option
- func WithCache(cache Cache) Option
- func WithMiddleware(middlewares ...Middleware) Option
- func WithQueue(queue Queue) Option
- func WithRedis(cache Cache) Option
- func WithRenderer(renderer Renderer) Option
- func WithSFTP(transport FileTransport) Option
- func WithScheduler(scheduler *Scheduler) Option
- func WithStorage(storage Storage) Option
- func WithViews(dir string, funcs ...template.FuncMap) Option
- type Pipeline
- type PipelineContext
- type PipelineEvent
- type PipelineFunc
- type PipelineStep
- type PipelineStepOption
- type PipelineStepOptions
- type PublishOption
- type PublishOptions
- type PutOption
- type PutOptions
- type QueryBuilder
- type Queue
- type RabbitMQConfig
- type RabbitQueue
- type RedisCache
- type RedisConfig
- type Renderer
- type Resource
- type Router
- type S3Config
- type S3Storage
- type SFTPClient
- type SFTPConfig
- type SFTPUploadOption
- type SFTPUploadOptions
- type SFTPUploadResult
- type ScheduleOption
- type ScheduleOptions
- type ScheduledFunc
- type ScheduledJob
- type Scheduler
- type Storage
- type Trigger
- type ViewEngine
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = framework.ErrCacheMiss
Functions ¶
func MustMigrate ¶
Types ¶
type ConsumeOption ¶
type ConsumeOption = framework.ConsumeOption
func WithAutoAck ¶
func WithAutoAck() ConsumeOption
func WithConsumerName ¶
func WithConsumerName(name string) ConsumeOption
func WithPrefetch ¶
func WithPrefetch(count int) ConsumeOption
func WithRequeueOnError ¶
func WithRequeueOnError() ConsumeOption
type ConsumeOptions ¶
type ConsumeOptions = framework.ConsumeOptions
type FileTransport ¶
type FileTransport = framework.FileTransport
type HandlerFunc ¶
type HandlerFunc = framework.HandlerFunc
func JSON ¶
func JSON(data any) HandlerFunc
func Text ¶
func Text(text string) HandlerFunc
type JobHandler ¶
type JobHandler = framework.JobHandler
type Middleware ¶
type Middleware = framework.Middleware
func Logger ¶
func Logger() Middleware
func Recover ¶
func Recover() Middleware
type Migrator ¶
func NewMigrator ¶
type Option ¶
func WithMiddleware ¶
func WithMiddleware(middlewares ...Middleware) Option
func WithRenderer ¶
func WithSFTP ¶
func WithSFTP(transport FileTransport) Option
func WithScheduler ¶
func WithStorage ¶
type Pipeline ¶
func NewPipeline ¶
type PipelineContext ¶
type PipelineContext = framework.PipelineContext
type PipelineEvent ¶
type PipelineEvent = framework.PipelineEvent
type PipelineFunc ¶
type PipelineFunc = framework.PipelineFunc
type PipelineStep ¶
type PipelineStep = framework.PipelineStep
type PipelineStepOption ¶
type PipelineStepOption = framework.PipelineStepOption
func ContinueOnStepError ¶
func ContinueOnStepError() PipelineStepOption
func WithStepRetries ¶
func WithStepRetries(retries int, delay time.Duration) PipelineStepOption
func WithStepTimeout ¶
func WithStepTimeout(timeout time.Duration) PipelineStepOption
type PipelineStepOptions ¶
type PipelineStepOptions = framework.PipelineStepOptions
type PublishOption ¶
type PublishOption = framework.PublishOption
func WithExchange ¶
func WithExchange(exchange, routingKey string) PublishOption
func WithQueueContentType ¶
func WithQueueContentType(contentType string) PublishOption
func WithQueueDelay ¶
func WithQueueDelay(delay time.Duration) PublishOption
func WithQueueHeaders ¶
func WithQueueHeaders(headers map[string]any) PublishOption
func WithTransientMessage ¶
func WithTransientMessage() PublishOption
type PublishOptions ¶
type PublishOptions = framework.PublishOptions
type PutOptions ¶
type PutOptions = framework.PutOptions
type QueryBuilder ¶
type QueryBuilder = framework.QueryBuilder
type RabbitMQConfig ¶
type RabbitMQConfig = framework.RabbitMQConfig
func RabbitMQConfigFromEnv ¶
func RabbitMQConfigFromEnv(prefix string) RabbitMQConfig
type RabbitQueue ¶
type RabbitQueue = framework.RabbitQueue
func MustRabbitQueue ¶
func MustRabbitQueue(config RabbitMQConfig) *RabbitQueue
func NewRabbitQueue ¶
func NewRabbitQueue(config RabbitMQConfig) (*RabbitQueue, error)
type RedisCache ¶
type RedisCache = framework.RedisCache
func MustRedisCache ¶
func MustRedisCache(config RedisConfig) *RedisCache
func NewRedisCache ¶
func NewRedisCache(config RedisConfig) (*RedisCache, error)
type RedisConfig ¶
type RedisConfig = framework.RedisConfig
func RedisConfigFromEnv ¶
func RedisConfigFromEnv(prefix string) RedisConfig
type S3Config ¶
func S3ConfigFromEnv ¶
type SFTPClient ¶
type SFTPClient = framework.SFTPClient
func MustSFTPClient ¶
func MustSFTPClient(config SFTPConfig) *SFTPClient
func NewSFTPClient ¶
func NewSFTPClient(config SFTPConfig) (*SFTPClient, error)
type SFTPConfig ¶
type SFTPConfig = framework.SFTPConfig
func SFTPConfigFromEnv ¶
func SFTPConfigFromEnv(prefix string) SFTPConfig
type SFTPUploadOption ¶
type SFTPUploadOption = framework.SFTPUploadOption
func WithSFTPMkdirAll ¶
func WithSFTPMkdirAll() SFTPUploadOption
func WithSFTPMode ¶
func WithSFTPMode(mode os.FileMode) SFTPUploadOption
func WithoutSFTPChecksum ¶
func WithoutSFTPChecksum() SFTPUploadOption
type SFTPUploadOptions ¶
type SFTPUploadOptions = framework.SFTPUploadOptions
type SFTPUploadResult ¶
type SFTPUploadResult = framework.SFTPUploadResult
type ScheduleOption ¶
type ScheduleOption = framework.ScheduleOption
func RunImmediately ¶
func RunImmediately() ScheduleOption
func Singleton ¶
func Singleton() ScheduleOption
func WithScheduleErrorHandler ¶
func WithScheduleErrorHandler(handler func(string, error)) ScheduleOption
func WithScheduleTimeout ¶
func WithScheduleTimeout(timeout time.Duration) ScheduleOption
type ScheduleOptions ¶
type ScheduleOptions = framework.ScheduleOptions
type ScheduledFunc ¶
type ScheduledFunc = framework.ScheduledFunc
type ScheduledJob ¶
type ScheduledJob = framework.ScheduledJob
type Scheduler ¶
func NewScheduler ¶
func NewScheduler() *Scheduler
type ViewEngine ¶
type ViewEngine = framework.ViewEngine
func MustViewEngine ¶
func MustViewEngine(dir string, funcs ...template.FuncMap) *ViewEngine
func NewViewEngine ¶
func NewViewEngine(dir string, funcs ...template.FuncMap) (*ViewEngine, error)
Click to show internal directories.
Click to hide internal directories.