Documentation
¶
Index ¶
- Constants
- type CmdService
- func (CmdService) GetModuleConfigDefaults(ctx context.Context, ...) (*connect.Response[langpb.GetModuleConfigDefaultsResponse], error)
- func (CmdService) GetNewModuleFlags(ctx context.Context, req *connect.Request[langpb.GetNewModuleFlagsRequest]) (*connect.Response[langpb.GetNewModuleFlagsResponse], error)
- func (CmdService) GetSQLInterfaces(ctx context.Context, req *connect.Request[langpb.GetSQLInterfacesRequest]) (*connect.Response[langpb.GetSQLInterfacesResponse], error)
- func (CmdService) NewModule(ctx context.Context, req *connect.Request[langpb.NewModuleRequest]) (*connect.Response[langpb.NewModuleResponse], error)
- type Service
- func (s *Service) Build(ctx context.Context, req *connect.Request[langpb.BuildRequest]) (*connect.Response[langpb.BuildResponse], error)
- func (s *Service) GenerateStubs(ctx context.Context, req *connect.Request[langpb.GenerateStubsRequest]) (*connect.Response[langpb.GenerateStubsResponse], error)
- func (s *Service) GetDependencies(ctx context.Context, req *connect.Request[langpb.GetDependenciesRequest]) (*connect.Response[langpb.GetDependenciesResponse], error)
- func (s *Service) Ping(ctx context.Context, req *connect.Request[ftlv1.PingRequest]) (*connect.Response[ftlv1.PingResponse], error)
- func (s *Service) SyncStubReferences(ctx context.Context, req *connect.Request[langpb.SyncStubReferencesRequest]) (*connect.Response[langpb.SyncStubReferencesResponse], error)
Constants ¶
const BuildLockTimeout = time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdService ¶ added in v0.471.0
type CmdService struct{}
func (CmdService) GetModuleConfigDefaults ¶ added in v0.471.0
func (CmdService) GetModuleConfigDefaults(ctx context.Context, req *connect.Request[langpb.GetModuleConfigDefaultsRequest]) (*connect.Response[langpb.GetModuleConfigDefaultsResponse], error)
GetModuleConfigDefaults provides default values for ModuleConfig for values that are not configured in the ftl.toml file.
func (CmdService) GetNewModuleFlags ¶ added in v0.471.0
func (CmdService) GetNewModuleFlags(ctx context.Context, req *connect.Request[langpb.GetNewModuleFlagsRequest]) (*connect.Response[langpb.GetNewModuleFlagsResponse], error)
func (CmdService) GetSQLInterfaces ¶ added in v0.478.0
func (CmdService) GetSQLInterfaces(ctx context.Context, req *connect.Request[langpb.GetSQLInterfacesRequest]) (*connect.Response[langpb.GetSQLInterfacesResponse], error)
func (CmdService) NewModule ¶ added in v0.471.0
func (CmdService) NewModule(ctx context.Context, req *connect.Request[langpb.NewModuleRequest]) (*connect.Response[langpb.NewModuleResponse], error)
NewModule generates files for a new module with the requested name
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Build ¶
func (s *Service) Build(ctx context.Context, req *connect.Request[langpb.BuildRequest]) (*connect.Response[langpb.BuildResponse], error)
Build the module and stream back build events.
A BuildSuccess or BuildFailure event must be streamed back with the request's context id to indicate the end of the build.
The request can include the option to "rebuild_automatically". In this case the plugin should watch for file changes and automatically rebuild as needed as long as this build request is alive. Each automactic rebuild must include the latest build context id provided by the request or subsequent BuildContextUpdated calls.
func (*Service) GenerateStubs ¶
func (*Service) GetDependencies ¶
func (s *Service) GetDependencies(ctx context.Context, req *connect.Request[langpb.GetDependenciesRequest]) (*connect.Response[langpb.GetDependenciesResponse], error)
GetDependencies extracts dependencies for a module