ftl

package module
v0.510.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README


FTL CI License

Documentation

https://block.github.io/ftl/

Getting started

Install ftl, for example on macos:
brew tap block/ftl && brew install ftl
Create a sample project (Go)
ftl init myproject
cd myproject
ftl module new go alice
Build and deploy the module

Start FTL:

ftl dev --wait-for=alice

Now let's call a verb:

ftl call alice.hello '{name: "Bob"}'

Project Resources

Resource Description
CODEOWNERS Outlines the project lead(s)
CODE_OF_CONDUCT.md Expected behavior for project contributors, promoting a welcoming environment
CONTRIBUTING.md Developer guide to build, test, run, access CI, chat, discuss, file issues
GOVERNANCE.md Project governance
LICENSE Apache License, Version 2.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormattedVersion = fmt.Sprintf("%s (%s)", Version, Timestamp.Format("2006-01-02"))

FormattedVersion includes the version and timestamp.

View Source
var Timestamp = time.Unix(must.Get(strconv.ParseInt(timestamp, 0, 64)), 0)

Timestamp parsed from "timestamp".

View Source
var Version = "dev"

Version of FTL binary (set by linker).

Functions

func BaseVersion added in v0.423.1

func BaseVersion(v string) string

BaseVersion returns the version without any SHA suffix. For example, "0.423.0-5-g43798ff01" becomes "0.423.0"

func IsRelease

func IsRelease(v string) bool

IsRelease returns true if the version is a release version.

func IsVersionAtLeastMin

func IsVersionAtLeastMin(v string, minVersion string) bool

IsVersionAtLeastMin returns true if any of the following are true:

  • minVersion is not defined (i.e. is emptystring)
  • v or minVersion is not a release version
  • v > minVersion when both v and minVersion are release versions

Types

This section is empty.

Directories

Path Synopsis
backend
controller/scheduledtask
Package scheduledtask implements a task scheduler.
Package scheduledtask implements a task scheduler.
runner
Package runner contains a server that implements the RunnerService and proxies VerbService requests to user code.
Package runner contains a server that implements the RunnerService and proxies VerbService requests to user code.
cmd
ftl command
ftl-admin command
ftl-console command
ftl-cron command
ftl-gen-lsp command
This program generates hover items for the FTL LSP server.
This program generates hover items for the FTL LSP server.
ftl-lease command
ftl-provisioner command
ftl-proxy-pg command
ftl-runner command
ftl-schema command
ftl-timeline command
go2proto command
raft-tester command
common
encoding
Package encoding defines the internal encoding that FTL uses to encode and decode messages.
Package encoding defines the internal encoding that FTL uses to encode and decode messages.
key
log
reflect
Package reflect implements the proposal https://go.dev/issue/51520.
Package reflect implements the proposal https://go.dev/issue/51520.
strcase
Package strcase provides programming case conversion functions for strings.
Package strcase provides programming case conversion functions for strings.
frontend
compile
Package compile compiles FTL Go module source into a deployable executable.
Package compile compiles FTL Go module source into a deployable executable.
ftl
ftl/ftltest
Package ftltest contains test utilities for the ftl package.
Package ftltest contains test utilities for the ftl package.
buildengine
Package buildengine provides a framework for building FTL modules.
Package buildengine provides a framework for building FTL modules.
clirpc
clirpc is a package that provides a way to run RPC commands as CLI commands
clirpc is a package that provides a way to run RPC commands as CLI commands
config
Package config is the FTL configuration and secret management API.
Package config is the FTL configuration and secret management API.
dev
dsn
git
goast
Package goast provides a useful visitor for the Go AST.
Package goast provides a useful visitor for the Go AST.
lsp
Code generated by 'just lsp-generate'.
Code generated by 'just lsp-generate'.
mcp
oci
prodinit
Package prodinit" initializes the runtime environment for production.
Package prodinit" initializes the runtime environment for production.
profiles
Package profiles manages the persistent profile configuration of the FTL CLI.
Package profiles manages the persistent profile configuration of the FTL CLI.
rpc
sql
jvm-runtime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL