draincloud-core/internal/handler/handler.go

18 lines
343 B
Go
Raw Normal View History

2024-12-29 20:38:20 +00:00
package handler
import (
"context"
"git.optclblast.xyz/draincloud/draincloud-core/internal/common"
)
type Writer interface {
Write(ctx context.Context, resp any)
}
type Handler struct {
Name string
RequiredResolveParams []string
ProcessFn func(ctx context.Context, req *common.Request, w Writer) error
}