Documentation
¶
Index ¶
- Constants
- Variables
- 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 (c CmdService) NewModule(ctx context.Context, req *connect.Request[langpb.NewModuleRequest]) (*connect.Response[langpb.NewModuleResponse], error)
- type ExceptionRecord
- type FrameRecord
- type JavaConfig
- type JvmLogRecord
- 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 ¶
View Source
const BuildLockTimeout = time.Minute
View Source
const ErrorFile = "errors.pb"
View Source
const JavaBuildToolGradle string = "gradle"
View Source
const JavaBuildToolMaven string = "maven"
View Source
const SchemaFile = "schema.pb"
Variables ¶
View Source
var ErrInvalidateDependencies = errors.New("dependencies need to be updated")
Functions ¶
This section is empty.
Types ¶
type CmdService ¶ added in v0.471.0
func NewCmdService ¶ added in v0.471.0
func NewCmdService(scaffoldFiles *zip.Reader) *CmdService
func (CmdService) GetModuleConfigDefaults ¶ added in v0.471.0
func (CmdService) GetModuleConfigDefaults(ctx context.Context, req *connect.Request[langpb.GetModuleConfigDefaultsRequest]) (*connect.Response[langpb.GetModuleConfigDefaultsResponse], error)
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 (c 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 ExceptionRecord ¶ added in v0.493.1
type ExceptionRecord struct {
RefID int `json:"refId"`
ExceptionType string `json:"exceptionType"`
Message string `json:"message"`
Frames []FrameRecord `json:"frames"`
CausedBy *ExceptionRecord `json:"causedBy"`
}
type FrameRecord ¶ added in v0.493.1
type JavaConfig ¶
type JavaConfig struct {
BuildTool string `mapstructure:"build-tool"`
}
type JvmLogRecord ¶ added in v0.462.0
type JvmLogRecord struct {
Timestamp time.Time `json:"timestamp"`
Sequence int `json:"sequence"`
LoggerClassName string `json:"loggerClassName"`
LoggerName string `json:"loggerName"`
Level string `json:"level"`
Message string `json:"message"`
ThreadName string `json:"threadName"`
ThreadID int `json:"threadId"`
Mdc any `json:"mdc"`
Ndc string `json:"ndc"`
HostName string `json:"hostName"`
ProcessName string `json:"processName"`
ProcessID int `json:"processId"`
Exception *ExceptionRecord `json:"exception"`
StackTrace string `json:"stackTrace,omitempty"`
}
func (*JvmLogRecord) ToEntry ¶ added in v0.462.0
func (r *JvmLogRecord) ToEntry() log.Entry
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 (*Service) SyncStubReferences ¶
Click to show internal directories.
Click to hide internal directories.