MCPcopy Create free account
hub / github.com/rilldata/rill / GetMetadata

Method GetMetadata

cli/pkg/local/server.go:98–115  ·  view source on GitHub ↗

GetMetadata implements localv1connect.LocalServiceHandler.

(ctx context.Context, r *connect.Request[localv1.GetMetadataRequest])

Source from the content-addressed store, hash-verified

96
97// GetMetadata implements localv1connect.LocalServiceHandler.
98func (s *Server) GetMetadata(ctx context.Context, r *connect.Request[localv1.GetMetadataRequest]) (*connect.Response[localv1.GetMetadataResponse], error) {
99 return connect.NewResponse(&localv1.GetMetadataResponse{
100 InstanceId: s.metadata.InstanceID,
101 ProjectPath: s.metadata.ProjectPath,
102 InstallId: s.metadata.InstallID,
103 UserId: s.metadata.UserID,
104 Version: s.metadata.Version,
105 BuildCommit: s.metadata.BuildCommit,
106 BuildTime: s.metadata.BuildTime,
107 IsDev: s.metadata.IsDev,
108 AnalyticsEnabled: s.metadata.AnalyticsEnabled,
109 Readonly: s.metadata.Readonly,
110 GrpcPort: int32(s.metadata.GRPCPort),
111 LoginUrl: s.app.localURL + "/auth",
112 AdminUrl: s.app.ch.AdminURL(),
113 PreviewMode: s.metadata.PreviewMode,
114 }), nil
115}
116
117// GetVersion implements localv1connect.LocalServiceHandler.
118func (s *Server) GetVersion(ctx context.Context, r *connect.Request[localv1.GetVersionRequest]) (*connect.Response[localv1.GetVersionResponse], error) {

Callers

nothing calls this directly

Calls 1

AdminURLMethod · 0.80

Tested by

no test coverage detected