Documentation ¶
Index ¶
- Constants
- func DefaultProdSlots(ch *cmdutil.Helper) int
- func IsProjectInit(projectPath string) bool
- type App
- type AppOptions
- type LogFormat
- type Server
- func (s *Server) DeployProject(ctx context.Context, r *connect.Request[localv1.DeployProjectRequest]) (*connect.Response[localv1.DeployProjectResponse], error)
- func (s *Server) GetCurrentProject(ctx context.Context, r *connect.Request[localv1.GetCurrentProjectRequest]) (*connect.Response[localv1.GetCurrentProjectResponse], error)
- func (s *Server) GetCurrentUser(ctx context.Context, r *connect.Request[localv1.GetCurrentUserRequest]) (*connect.Response[localv1.GetCurrentUserResponse], error)
- func (s *Server) GetMetadata(ctx context.Context, r *connect.Request[localv1.GetMetadataRequest]) (*connect.Response[localv1.GetMetadataResponse], error)
- func (s *Server) GetVersion(ctx context.Context, r *connect.Request[localv1.GetVersionRequest]) (*connect.Response[localv1.GetVersionResponse], error)
- func (s *Server) ListOrganizationsAndBillingMetadata(ctx context.Context, ...) (*connect.Response[localv1.ListOrganizationsAndBillingMetadataResponse], error)
- func (s *Server) Ping(ctx context.Context, r *connect.Request[localv1.PingRequest]) (*connect.Response[localv1.PingResponse], error)
- func (s *Server) PushToGithub(ctx context.Context, r *connect.Request[localv1.PushToGithubRequest]) (*connect.Response[localv1.PushToGithubResponse], error)
- func (s *Server) RedeployProject(ctx context.Context, r *connect.Request[localv1.RedeployProjectRequest]) (*connect.Response[localv1.RedeployProjectResponse], error)
- func (s *Server) RegisterHandlers(mux *http.ServeMux, httpPort int, secure, enableUI bool)
Constants ¶
const ( LogFormatConsole = "console" LogFormatJSON = "json" )
Default log formats for logger
const ( DefaultInstanceID = "default" DefaultOLAPDriver = "duckdb" DefaultOLAPDSN = "main.db" DefaultCatalogStore = "meta.db" DefaultDBDir = "tmp" )
Default instance config on local.
Variables ¶
This section is empty.
Functions ¶
func DefaultProdSlots ¶ added in v0.49.1
func IsProjectInit ¶ added in v0.36.0
IsProjectInit checks if the project is initialized by checking if rill.yaml exists in the project directory. It doesn't use any runtime functions since we need the ability to check this before creating the instance.
Types ¶
type App ¶
type App struct { Context context.Context Runtime *runtime.Runtime Instance *drivers.Instance Logger *zap.SugaredLogger BaseLogger *zap.Logger Verbose bool Debug bool ProjectPath string // contains filtered or unexported fields }
App encapsulates the logic associated with configuring and running the UI and the runtime in a local environment. Here, a local environment means a non-authenticated, single-instance and single-project setup on localhost. App encapsulates logic shared between different CLI commands, like start, init, build and source.
func (*App) PollServer ¶ added in v0.49.0
type AppOptions ¶ added in v0.41.0
type Server ¶ added in v0.45.0
type Server struct {
// contains filtered or unexported fields
}
Server implements endpoints for the local Rill app (usually served on localhost).
func (*Server) DeployProject ¶ added in v0.47.0
func (s *Server) DeployProject(ctx context.Context, r *connect.Request[localv1.DeployProjectRequest]) (*connect.Response[localv1.DeployProjectResponse], error)
DeployProject implements localv1connect.LocalServiceHandler.
func (*Server) GetCurrentProject ¶ added in v0.48.0
func (s *Server) GetCurrentProject(ctx context.Context, r *connect.Request[localv1.GetCurrentProjectRequest]) (*connect.Response[localv1.GetCurrentProjectResponse], error)
GetCurrentProject implements localv1connect.LocalServiceHandler.
func (*Server) GetCurrentUser ¶ added in v0.47.0
func (s *Server) GetCurrentUser(ctx context.Context, r *connect.Request[localv1.GetCurrentUserRequest]) (*connect.Response[localv1.GetCurrentUserResponse], error)
GetCurrentUser implements localv1connect.LocalServiceHandler.
func (*Server) GetMetadata ¶ added in v0.45.0
func (s *Server) GetMetadata(ctx context.Context, r *connect.Request[localv1.GetMetadataRequest]) (*connect.Response[localv1.GetMetadataResponse], error)
GetMetadata implements localv1connect.LocalServiceHandler.
func (*Server) GetVersion ¶ added in v0.45.0
func (s *Server) GetVersion(ctx context.Context, r *connect.Request[localv1.GetVersionRequest]) (*connect.Response[localv1.GetVersionResponse], error)
GetVersion implements localv1connect.LocalServiceHandler.
func (*Server) ListOrganizationsAndBillingMetadata ¶ added in v0.51.0
func (*Server) Ping ¶ added in v0.45.0
func (s *Server) Ping(ctx context.Context, r *connect.Request[localv1.PingRequest]) (*connect.Response[localv1.PingResponse], error)
Ping implements localv1connect.LocalServiceHandler.
func (*Server) PushToGithub ¶ added in v0.47.0
func (s *Server) PushToGithub(ctx context.Context, r *connect.Request[localv1.PushToGithubRequest]) (*connect.Response[localv1.PushToGithubResponse], error)
PushToGithub implements localv1connect.LocalServiceHandler. It assumes that the current project is not a git repo, it should generally be called after DeployValidation.
func (*Server) RedeployProject ¶ added in v0.47.0
func (s *Server) RedeployProject(ctx context.Context, r *connect.Request[localv1.RedeployProjectRequest]) (*connect.Response[localv1.RedeployProjectResponse], error)
RedeployProject implements localv1connect.LocalServiceHandler.