Documentation ¶
Index ¶
- func Call[Req, Resp any](ref reflection.Ref) func(ctx context.Context, req Req) (resp Resp, err error)
- func EmptyClient[Verb any]() reflection.VerbResource
- func NewUserVerbServer(projectName string, moduleName string, handlers ...Handler) plugin.Constructor[ftlv1connect.VerbServiceHandler, UserVerbConfig]
- func SinkClient[Verb, Req any]() reflection.VerbResource
- func SourceClient[Verb, Resp any]() reflection.VerbResource
- func VerbClient[Verb, Req, Resp any]() reflection.VerbResource
- type Handler
- type UserVerbConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyClient ¶ added in v0.372.0
func EmptyClient[Verb any]() reflection.VerbResource
func NewUserVerbServer ¶
func NewUserVerbServer(projectName string, moduleName string, handlers ...Handler) plugin.Constructor[ftlv1connect.VerbServiceHandler, UserVerbConfig]
NewUserVerbServer starts a new code-generated drive for user Verbs.
This function is intended to be used by the code generator.
func SinkClient ¶ added in v0.372.0
func SinkClient[Verb, Req any]() reflection.VerbResource
func SourceClient ¶ added in v0.372.0
func SourceClient[Verb, Resp any]() reflection.VerbResource
func VerbClient ¶ added in v0.372.0
func VerbClient[Verb, Req, Resp any]() reflection.VerbResource
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler for a Verb.
func HandleCall ¶ added in v0.149.2
func HandleEmpty ¶ added in v0.149.2
func HandleSink ¶ added in v0.149.2
func HandleSource ¶ added in v0.149.2
type UserVerbConfig ¶
type UserVerbConfig struct { FTLEndpoint *url.URL `help:"FTL endpoint." env:"FTL_ENDPOINT" required:""` ObservabilityConfig observability.Config `embed:"" prefix:"o11y-"` Config []string `` /* 139-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.