Skip to content

Commit

Permalink
feat(go-runtime): extract FTL config/secret declarations as schema de…
Browse files Browse the repository at this point in the history
…finitions (#1061)

eg.

```
module echo {
  config default String

  data MySecret {
    password String
  }

  secret request MySecret
}
```
  • Loading branch information
alecthomas authored Mar 12, 2024
1 parent 9f6722d commit 0e4ea0a
Show file tree
Hide file tree
Showing 22 changed files with 1,599 additions and 559 deletions.
3 changes: 2 additions & 1 deletion backend/controller/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb

case *schema.Bool, *schema.Bytes, *schema.Database, *schema.Float,
*schema.Int, *schema.Module, *schema.String, *schema.Time,
*schema.Unit, *schema.Any, *schema.TypeParameter, *schema.Enum:
*schema.Unit, *schema.Any, *schema.TypeParameter, *schema.Enum,
*schema.Config, *schema.Secret:
}
}

Expand Down
Loading

0 comments on commit 0e4ea0a

Please sign in to comment.