Documentation
¶
Index ¶
- type DBTX
- type DeleteServerVersionParams
- type GetServerVersionParams
- type GetServerVersionRow
- type IconTheme
- type InsertRegistryParams
- type InsertRegistrySyncParams
- type InsertServerIconParams
- type InsertServerPackageParams
- type InsertServerRemoteParams
- type InsertServerVersionParams
- type LatestServerVersion
- type ListRegistriesParams
- type ListServerVersionsParams
- type ListServerVersionsRow
- type ListServersParams
- type ListServersRow
- type McpServer
- type McpServerIcon
- type McpServerPackage
- type McpServerRemote
- type NullIconTheme
- type NullRegistryType
- type NullSyncStatus
- type Querier
- type Queries
- func (q *Queries) DeleteServerVersion(ctx context.Context, arg DeleteServerVersionParams) (int64, error)
- func (q *Queries) GetRegistry(ctx context.Context, id uuid.UUID) (Registry, error)
- func (q *Queries) GetRegistryByName(ctx context.Context, name string) (Registry, error)
- func (q *Queries) GetRegistrySync(ctx context.Context, id uuid.UUID) (RegistrySync, error)
- func (q *Queries) GetServerVersion(ctx context.Context, arg GetServerVersionParams) (GetServerVersionRow, error)
- func (q *Queries) InsertRegistry(ctx context.Context, arg InsertRegistryParams) (uuid.UUID, error)
- func (q *Queries) InsertRegistrySync(ctx context.Context, arg InsertRegistrySyncParams) (uuid.UUID, error)
- func (q *Queries) InsertServerIcon(ctx context.Context, arg InsertServerIconParams) error
- func (q *Queries) InsertServerPackage(ctx context.Context, arg InsertServerPackageParams) error
- func (q *Queries) InsertServerRemote(ctx context.Context, arg InsertServerRemoteParams) error
- func (q *Queries) InsertServerVersion(ctx context.Context, arg InsertServerVersionParams) (uuid.UUID, error)
- func (q *Queries) ListRegistries(ctx context.Context, arg ListRegistriesParams) ([]Registry, error)
- func (q *Queries) ListServerPackages(ctx context.Context, serverIds []uuid.UUID) ([]McpServerPackage, error)
- func (q *Queries) ListServerRemotes(ctx context.Context, serverIds []uuid.UUID) ([]McpServerRemote, error)
- func (q *Queries) ListServerVersions(ctx context.Context, arg ListServerVersionsParams) ([]ListServerVersionsRow, error)
- func (q *Queries) ListServers(ctx context.Context, arg ListServersParams) ([]ListServersRow, error)
- func (q *Queries) UpdateRegistrySync(ctx context.Context, arg UpdateRegistrySyncParams) error
- func (q *Queries) UpsertLatestServerVersion(ctx context.Context, arg UpsertLatestServerVersionParams) (uuid.UUID, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Registry
- type RegistrySync
- type RegistryType
- type SyncStatus
- type UpdateRegistrySyncParams
- type UpsertLatestServerVersionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteServerVersionParams ¶ added in v0.3.0
type GetServerVersionParams ¶ added in v0.3.0
type GetServerVersionRow ¶ added in v0.3.0
type GetServerVersionRow struct {
RegistryType RegistryType `json:"registry_type"`
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
IsLatest bool `json:"is_latest"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Description *string `json:"description"`
Title *string `json:"title"`
Website *string `json:"website"`
UpstreamMeta []byte `json:"upstream_meta"`
ServerMeta []byte `json:"server_meta"`
RepositoryUrl *string `json:"repository_url"`
RepositoryID *string `json:"repository_id"`
RepositorySubfolder *string `json:"repository_subfolder"`
RepositoryType *string `json:"repository_type"`
}
type InsertRegistryParams ¶
type InsertServerIconParams ¶ added in v0.3.0
type InsertServerPackageParams ¶ added in v0.3.0
type InsertServerPackageParams struct {
ServerID uuid.UUID `json:"server_id"`
RegistryType string `json:"registry_type"`
PkgRegistryUrl string `json:"pkg_registry_url"`
PkgIdentifier string `json:"pkg_identifier"`
PkgVersion string `json:"pkg_version"`
RuntimeHint *string `json:"runtime_hint"`
RuntimeArguments []string `json:"runtime_arguments"`
PackageArguments []string `json:"package_arguments"`
EnvVars []string `json:"env_vars"`
Sha256Hash *string `json:"sha256_hash"`
Transport string `json:"transport"`
TransportUrl *string `json:"transport_url"`
TransportHeaders []string `json:"transport_headers"`
}
type InsertServerRemoteParams ¶ added in v0.3.0
type InsertServerVersionParams ¶ added in v0.3.0
type InsertServerVersionParams struct {
Name string `json:"name"`
Version string `json:"version"`
RegID uuid.UUID `json:"reg_id"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Description *string `json:"description"`
Title *string `json:"title"`
Website *string `json:"website"`
UpstreamMeta []byte `json:"upstream_meta"`
ServerMeta []byte `json:"server_meta"`
RepositoryUrl *string `json:"repository_url"`
RepositoryID *string `json:"repository_id"`
RepositorySubfolder *string `json:"repository_subfolder"`
RepositoryType *string `json:"repository_type"`
}
type LatestServerVersion ¶
type ListRegistriesParams ¶
type ListServerVersionsRow ¶
type ListServerVersionsRow struct {
RegistryType RegistryType `json:"registry_type"`
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
IsLatest bool `json:"is_latest"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Description *string `json:"description"`
Title *string `json:"title"`
Website *string `json:"website"`
UpstreamMeta []byte `json:"upstream_meta"`
ServerMeta []byte `json:"server_meta"`
RepositoryUrl *string `json:"repository_url"`
RepositoryID *string `json:"repository_id"`
RepositorySubfolder *string `json:"repository_subfolder"`
RepositoryType *string `json:"repository_type"`
}
type ListServersParams ¶
type ListServersRow ¶
type ListServersRow struct {
RegistryType RegistryType `json:"registry_type"`
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
IsLatest bool `json:"is_latest"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Description *string `json:"description"`
Title *string `json:"title"`
Website *string `json:"website"`
UpstreamMeta []byte `json:"upstream_meta"`
ServerMeta []byte `json:"server_meta"`
RepositoryUrl *string `json:"repository_url"`
RepositoryID *string `json:"repository_id"`
RepositorySubfolder *string `json:"repository_subfolder"`
RepositoryType *string `json:"repository_type"`
}
type McpServer ¶
type McpServer struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
RegID uuid.UUID `json:"reg_id"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
Description *string `json:"description"`
Title *string `json:"title"`
Website *string `json:"website"`
UpstreamMeta []byte `json:"upstream_meta"`
ServerMeta []byte `json:"server_meta"`
RepositoryUrl *string `json:"repository_url"`
RepositoryID *string `json:"repository_id"`
RepositorySubfolder *string `json:"repository_subfolder"`
RepositoryType *string `json:"repository_type"`
}
type McpServerIcon ¶
type McpServerPackage ¶
type McpServerPackage struct {
ServerID uuid.UUID `json:"server_id"`
RegistryType string `json:"registry_type"`
PkgRegistryUrl string `json:"pkg_registry_url"`
PkgIdentifier string `json:"pkg_identifier"`
PkgVersion string `json:"pkg_version"`
RuntimeHint *string `json:"runtime_hint"`
RuntimeArguments []string `json:"runtime_arguments"`
PackageArguments []string `json:"package_arguments"`
EnvVars []string `json:"env_vars"`
Sha256Hash *string `json:"sha256_hash"`
Transport string `json:"transport"`
TransportUrl *string `json:"transport_url"`
TransportHeaders []string `json:"transport_headers"`
}
type McpServerRemote ¶
type NullIconTheme ¶
type NullIconTheme struct {
IconTheme IconTheme `json:"icon_theme"`
Valid bool `json:"valid"` // Valid is true if IconTheme is not NULL
}
func (*NullIconTheme) Scan ¶
func (ns *NullIconTheme) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullRegistryType ¶
type NullRegistryType struct {
RegistryType RegistryType `json:"registry_type"`
Valid bool `json:"valid"` // Valid is true if RegistryType is not NULL
}
func (*NullRegistryType) Scan ¶
func (ns *NullRegistryType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullSyncStatus ¶
type NullSyncStatus struct {
SyncStatus SyncStatus `json:"sync_status"`
Valid bool `json:"valid"` // Valid is true if SyncStatus is not NULL
}
func (*NullSyncStatus) Scan ¶
func (ns *NullSyncStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface {
DeleteServerVersion(ctx context.Context, arg DeleteServerVersionParams) (int64, error)
GetRegistry(ctx context.Context, id uuid.UUID) (Registry, error)
GetRegistryByName(ctx context.Context, name string) (Registry, error)
GetRegistrySync(ctx context.Context, id uuid.UUID) (RegistrySync, error)
GetServerVersion(ctx context.Context, arg GetServerVersionParams) (GetServerVersionRow, error)
InsertRegistry(ctx context.Context, arg InsertRegistryParams) (uuid.UUID, error)
InsertRegistrySync(ctx context.Context, arg InsertRegistrySyncParams) (uuid.UUID, error)
InsertServerIcon(ctx context.Context, arg InsertServerIconParams) error
InsertServerPackage(ctx context.Context, arg InsertServerPackageParams) error
InsertServerRemote(ctx context.Context, arg InsertServerRemoteParams) error
InsertServerVersion(ctx context.Context, arg InsertServerVersionParams) (uuid.UUID, error)
ListRegistries(ctx context.Context, arg ListRegistriesParams) ([]Registry, error)
ListServerPackages(ctx context.Context, serverIds []uuid.UUID) ([]McpServerPackage, error)
ListServerRemotes(ctx context.Context, serverIds []uuid.UUID) ([]McpServerRemote, error)
ListServerVersions(ctx context.Context, arg ListServerVersionsParams) ([]ListServerVersionsRow, error)
ListServers(ctx context.Context, arg ListServersParams) ([]ListServersRow, error)
UpdateRegistrySync(ctx context.Context, arg UpdateRegistrySyncParams) error
UpsertLatestServerVersion(ctx context.Context, arg UpsertLatestServerVersionParams) (uuid.UUID, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteServerVersion ¶ added in v0.3.0
func (*Queries) GetRegistry ¶
func (*Queries) GetRegistryByName ¶ added in v0.3.0
func (*Queries) GetRegistrySync ¶
func (*Queries) GetServerVersion ¶ added in v0.3.0
func (q *Queries) GetServerVersion(ctx context.Context, arg GetServerVersionParams) (GetServerVersionRow, error)
func (*Queries) InsertRegistry ¶
func (*Queries) InsertRegistrySync ¶
func (*Queries) InsertServerIcon ¶ added in v0.3.0
func (q *Queries) InsertServerIcon(ctx context.Context, arg InsertServerIconParams) error
func (*Queries) InsertServerPackage ¶ added in v0.3.0
func (q *Queries) InsertServerPackage(ctx context.Context, arg InsertServerPackageParams) error
func (*Queries) InsertServerRemote ¶ added in v0.3.0
func (q *Queries) InsertServerRemote(ctx context.Context, arg InsertServerRemoteParams) error
func (*Queries) InsertServerVersion ¶ added in v0.3.0
func (*Queries) ListRegistries ¶
func (*Queries) ListServerPackages ¶ added in v0.3.0
func (*Queries) ListServerRemotes ¶ added in v0.3.0
func (*Queries) ListServerVersions ¶
func (q *Queries) ListServerVersions(ctx context.Context, arg ListServerVersionsParams) ([]ListServerVersionsRow, error)
func (*Queries) ListServers ¶
func (q *Queries) ListServers(ctx context.Context, arg ListServersParams) ([]ListServersRow, error)
func (*Queries) UpdateRegistrySync ¶
func (q *Queries) UpdateRegistrySync(ctx context.Context, arg UpdateRegistrySyncParams) error
func (*Queries) UpsertLatestServerVersion ¶
type RegistrySync ¶
type RegistryType ¶
type RegistryType string
const ( RegistryTypeLOCAL RegistryType = "LOCAL" RegistryTypeFILE RegistryType = "FILE" RegistryTypeREMOTE RegistryType = "REMOTE" )
func (*RegistryType) Scan ¶
func (e *RegistryType) Scan(src interface{}) error
type SyncStatus ¶
type SyncStatus string
const ( SyncStatusINPROGRESS SyncStatus = "IN_PROGRESS" SyncStatusCOMPLETED SyncStatus = "COMPLETED" SyncStatusFAILED SyncStatus = "FAILED" )
func (*SyncStatus) Scan ¶
func (e *SyncStatus) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.