mcpupstream

package
v0.0.0-...-7f647c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the mcpupstream type in the database.
	Label = "mcp_upstream"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldTeamID holds the string denoting the team_id field in the database.
	FieldTeamID = "team_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldHeaders holds the string denoting the headers field in the database.
	FieldHeaders = "headers"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldHealthStatus holds the string denoting the health_status field in the database.
	FieldHealthStatus = "health_status"
	// FieldSyncStatus holds the string denoting the sync_status field in the database.
	FieldSyncStatus = "sync_status"
	// FieldHealthCheckedAt holds the string denoting the health_checked_at field in the database.
	FieldHealthCheckedAt = "health_checked_at"
	// FieldLastSyncedAt holds the string denoting the last_synced_at field in the database.
	FieldLastSyncedAt = "last_synced_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeTools holds the string denoting the tools edge name in mutations.
	EdgeTools = "tools"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeTeam holds the string denoting the team edge name in mutations.
	EdgeTeam = "team"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeTeamGroupMcpUpstreams holds the string denoting the team_group_mcp_upstreams edge name in mutations.
	EdgeTeamGroupMcpUpstreams = "team_group_mcp_upstreams"
	// Table holds the table name of the mcpupstream in the database.
	Table = "mcp_upstreams"
	// ToolsTable is the table that holds the tools relation/edge.
	ToolsTable = "mcp_tools"
	// ToolsInverseTable is the table name for the MCPTool entity.
	// It exists in this package in order to avoid circular dependency with the "mcptool" package.
	ToolsInverseTable = "mcp_tools"
	// ToolsColumn is the table column denoting the tools relation/edge.
	ToolsColumn = "upstream_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "mcp_upstreams"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// TeamTable is the table that holds the team relation/edge.
	TeamTable = "mcp_upstreams"
	// TeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamInverseTable = "teams"
	// TeamColumn is the table column denoting the team relation/edge.
	TeamColumn = "team_id"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "team_group_mcp_upstreams"
	// GroupsInverseTable is the table name for the TeamGroup entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroup" package.
	GroupsInverseTable = "team_groups"
	// TeamGroupMcpUpstreamsTable is the table that holds the team_group_mcp_upstreams relation/edge.
	TeamGroupMcpUpstreamsTable = "team_group_mcp_upstreams"
	// TeamGroupMcpUpstreamsInverseTable is the table name for the TeamGroupMCPUpstream entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupmcpupstream" package.
	TeamGroupMcpUpstreamsInverseTable = "team_group_mcp_upstreams"
	// TeamGroupMcpUpstreamsColumn is the table column denoting the team_group_mcp_upstreams relation/edge.
	TeamGroupMcpUpstreamsColumn = "upstream_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType string
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// URLValidator is a validator for the "url" field. It is called by the builders before save.
	URLValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultHealthStatus holds the default value on creation for the "health_status" field.
	DefaultHealthStatus string
	// HealthStatusValidator is a validator for the "health_status" field. It is called by the builders before save.
	HealthStatusValidator func(string) error
	// DefaultSyncStatus holds the default value on creation for the "sync_status" field.
	DefaultSyncStatus string
	// SyncStatusValidator is a validator for the "sync_status" field. It is called by the builders before save.
	SyncStatusValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for mcpupstream fields.

View Source
var (
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"group_id", "upstream_id"}
)

Functions

func And

func And(predicates ...predicate.MCPUpstream) predicate.MCPUpstream

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.MCPUpstream

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MCPUpstream

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MCPUpstream

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MCPUpstream

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.MCPUpstream

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MCPUpstream

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MCPUpstream

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MCPUpstream

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.MCPUpstream

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.MCPUpstream

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.MCPUpstream

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.MCPUpstream

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.MCPUpstream

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.MCPUpstream

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.MCPUpstream

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.MCPUpstream

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.MCPUpstream

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.MCPUpstream

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.MCPUpstream

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.MCPUpstream

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.MCPUpstream

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.MCPUpstream

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.MCPUpstream

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.MCPUpstream

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.MCPUpstream

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.MCPUpstream

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.MCPUpstream

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.MCPUpstream

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.MCPUpstream

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.MCPUpstream

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.MCPUpstream

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.MCPUpstream

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.MCPUpstream

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.MCPUpstream

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.MCPUpstream

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.MCPUpstream

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Enabled

func Enabled(v bool) predicate.MCPUpstream

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.MCPUpstream

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.MCPUpstream

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasGroups

func HasGroups() predicate.MCPUpstream

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.TeamGroup) predicate.MCPUpstream

HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).

func HasTeam

func HasTeam() predicate.MCPUpstream

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamGroupMcpUpstreams

func HasTeamGroupMcpUpstreams() predicate.MCPUpstream

HasTeamGroupMcpUpstreams applies the HasEdge predicate on the "team_group_mcp_upstreams" edge.

func HasTeamGroupMcpUpstreamsWith

func HasTeamGroupMcpUpstreamsWith(preds ...predicate.TeamGroupMCPUpstream) predicate.MCPUpstream

HasTeamGroupMcpUpstreamsWith applies the HasEdge predicate on the "team_group_mcp_upstreams" edge with a given conditions (other predicates).

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.MCPUpstream

HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).

func HasTools

func HasTools() predicate.MCPUpstream

HasTools applies the HasEdge predicate on the "tools" edge.

func HasToolsWith

func HasToolsWith(preds ...predicate.MCPTool) predicate.MCPUpstream

HasToolsWith applies the HasEdge predicate on the "tools" edge with a given conditions (other predicates).

func HasUser

func HasUser() predicate.MCPUpstream

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.MCPUpstream

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func HeadersIsNil

func HeadersIsNil() predicate.MCPUpstream

HeadersIsNil applies the IsNil predicate on the "headers" field.

func HeadersNotNil

func HeadersNotNil() predicate.MCPUpstream

HeadersNotNil applies the NotNil predicate on the "headers" field.

func HealthCheckedAt

func HealthCheckedAt(v time.Time) predicate.MCPUpstream

HealthCheckedAt applies equality check predicate on the "health_checked_at" field. It's identical to HealthCheckedAtEQ.

func HealthCheckedAtEQ

func HealthCheckedAtEQ(v time.Time) predicate.MCPUpstream

HealthCheckedAtEQ applies the EQ predicate on the "health_checked_at" field.

func HealthCheckedAtGT

func HealthCheckedAtGT(v time.Time) predicate.MCPUpstream

HealthCheckedAtGT applies the GT predicate on the "health_checked_at" field.

func HealthCheckedAtGTE

func HealthCheckedAtGTE(v time.Time) predicate.MCPUpstream

HealthCheckedAtGTE applies the GTE predicate on the "health_checked_at" field.

func HealthCheckedAtIn

func HealthCheckedAtIn(vs ...time.Time) predicate.MCPUpstream

HealthCheckedAtIn applies the In predicate on the "health_checked_at" field.

func HealthCheckedAtIsNil

func HealthCheckedAtIsNil() predicate.MCPUpstream

HealthCheckedAtIsNil applies the IsNil predicate on the "health_checked_at" field.

func HealthCheckedAtLT

func HealthCheckedAtLT(v time.Time) predicate.MCPUpstream

HealthCheckedAtLT applies the LT predicate on the "health_checked_at" field.

func HealthCheckedAtLTE

func HealthCheckedAtLTE(v time.Time) predicate.MCPUpstream

HealthCheckedAtLTE applies the LTE predicate on the "health_checked_at" field.

func HealthCheckedAtNEQ

func HealthCheckedAtNEQ(v time.Time) predicate.MCPUpstream

HealthCheckedAtNEQ applies the NEQ predicate on the "health_checked_at" field.

func HealthCheckedAtNotIn

func HealthCheckedAtNotIn(vs ...time.Time) predicate.MCPUpstream

HealthCheckedAtNotIn applies the NotIn predicate on the "health_checked_at" field.

func HealthCheckedAtNotNil

func HealthCheckedAtNotNil() predicate.MCPUpstream

HealthCheckedAtNotNil applies the NotNil predicate on the "health_checked_at" field.

func HealthStatus

func HealthStatus(v string) predicate.MCPUpstream

HealthStatus applies equality check predicate on the "health_status" field. It's identical to HealthStatusEQ.

func HealthStatusContains

func HealthStatusContains(v string) predicate.MCPUpstream

HealthStatusContains applies the Contains predicate on the "health_status" field.

func HealthStatusContainsFold

func HealthStatusContainsFold(v string) predicate.MCPUpstream

HealthStatusContainsFold applies the ContainsFold predicate on the "health_status" field.

func HealthStatusEQ

func HealthStatusEQ(v string) predicate.MCPUpstream

HealthStatusEQ applies the EQ predicate on the "health_status" field.

func HealthStatusEqualFold

func HealthStatusEqualFold(v string) predicate.MCPUpstream

HealthStatusEqualFold applies the EqualFold predicate on the "health_status" field.

func HealthStatusGT

func HealthStatusGT(v string) predicate.MCPUpstream

HealthStatusGT applies the GT predicate on the "health_status" field.

func HealthStatusGTE

func HealthStatusGTE(v string) predicate.MCPUpstream

HealthStatusGTE applies the GTE predicate on the "health_status" field.

func HealthStatusHasPrefix

func HealthStatusHasPrefix(v string) predicate.MCPUpstream

HealthStatusHasPrefix applies the HasPrefix predicate on the "health_status" field.

func HealthStatusHasSuffix

func HealthStatusHasSuffix(v string) predicate.MCPUpstream

HealthStatusHasSuffix applies the HasSuffix predicate on the "health_status" field.

func HealthStatusIn

func HealthStatusIn(vs ...string) predicate.MCPUpstream

HealthStatusIn applies the In predicate on the "health_status" field.

func HealthStatusLT

func HealthStatusLT(v string) predicate.MCPUpstream

HealthStatusLT applies the LT predicate on the "health_status" field.

func HealthStatusLTE

func HealthStatusLTE(v string) predicate.MCPUpstream

HealthStatusLTE applies the LTE predicate on the "health_status" field.

func HealthStatusNEQ

func HealthStatusNEQ(v string) predicate.MCPUpstream

HealthStatusNEQ applies the NEQ predicate on the "health_status" field.

func HealthStatusNotIn

func HealthStatusNotIn(vs ...string) predicate.MCPUpstream

HealthStatusNotIn applies the NotIn predicate on the "health_status" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.MCPUpstream

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.MCPUpstream

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.MCPUpstream

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.MCPUpstream

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.MCPUpstream

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.MCPUpstream

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MCPUpstream

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.MCPUpstream

IDNotIn applies the NotIn predicate on the ID field.

func LastSyncedAt

func LastSyncedAt(v time.Time) predicate.MCPUpstream

LastSyncedAt applies equality check predicate on the "last_synced_at" field. It's identical to LastSyncedAtEQ.

func LastSyncedAtEQ

func LastSyncedAtEQ(v time.Time) predicate.MCPUpstream

LastSyncedAtEQ applies the EQ predicate on the "last_synced_at" field.

func LastSyncedAtGT

func LastSyncedAtGT(v time.Time) predicate.MCPUpstream

LastSyncedAtGT applies the GT predicate on the "last_synced_at" field.

func LastSyncedAtGTE

func LastSyncedAtGTE(v time.Time) predicate.MCPUpstream

LastSyncedAtGTE applies the GTE predicate on the "last_synced_at" field.

func LastSyncedAtIn

func LastSyncedAtIn(vs ...time.Time) predicate.MCPUpstream

LastSyncedAtIn applies the In predicate on the "last_synced_at" field.

func LastSyncedAtIsNil

func LastSyncedAtIsNil() predicate.MCPUpstream

LastSyncedAtIsNil applies the IsNil predicate on the "last_synced_at" field.

func LastSyncedAtLT

func LastSyncedAtLT(v time.Time) predicate.MCPUpstream

LastSyncedAtLT applies the LT predicate on the "last_synced_at" field.

func LastSyncedAtLTE

func LastSyncedAtLTE(v time.Time) predicate.MCPUpstream

LastSyncedAtLTE applies the LTE predicate on the "last_synced_at" field.

func LastSyncedAtNEQ

func LastSyncedAtNEQ(v time.Time) predicate.MCPUpstream

LastSyncedAtNEQ applies the NEQ predicate on the "last_synced_at" field.

func LastSyncedAtNotIn

func LastSyncedAtNotIn(vs ...time.Time) predicate.MCPUpstream

LastSyncedAtNotIn applies the NotIn predicate on the "last_synced_at" field.

func LastSyncedAtNotNil

func LastSyncedAtNotNil() predicate.MCPUpstream

LastSyncedAtNotNil applies the NotNil predicate on the "last_synced_at" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.MCPUpstream

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.MCPUpstream

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.MCPUpstream

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.MCPUpstream

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.MCPUpstream

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.MCPUpstream

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.MCPUpstream

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.MCPUpstream

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.MCPUpstream

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.MCPUpstream

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.MCPUpstream

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.MCPUpstream

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.MCPUpstream

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MCPUpstream) predicate.MCPUpstream

Or groups predicates with the OR operator between them.

func ScopeEQ

func ScopeEQ(v Scope) predicate.MCPUpstream

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...Scope) predicate.MCPUpstream

ScopeIn applies the In predicate on the "scope" field.

func ScopeNEQ

func ScopeNEQ(v Scope) predicate.MCPUpstream

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...Scope) predicate.MCPUpstream

ScopeNotIn applies the NotIn predicate on the "scope" field.

func ScopeValidator

func ScopeValidator(s Scope) error

ScopeValidator is a validator for the "scope" field enum values. It is called by the builders before save.

func Slug

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.MCPUpstream

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.MCPUpstream

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.MCPUpstream

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.MCPUpstream

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.MCPUpstream

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.MCPUpstream

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.MCPUpstream

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.MCPUpstream

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.MCPUpstream

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.MCPUpstream

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.MCPUpstream

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.MCPUpstream

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.MCPUpstream

SlugNotIn applies the NotIn predicate on the "slug" field.

func SyncStatus

func SyncStatus(v string) predicate.MCPUpstream

SyncStatus applies equality check predicate on the "sync_status" field. It's identical to SyncStatusEQ.

func SyncStatusContains

func SyncStatusContains(v string) predicate.MCPUpstream

SyncStatusContains applies the Contains predicate on the "sync_status" field.

func SyncStatusContainsFold

func SyncStatusContainsFold(v string) predicate.MCPUpstream

SyncStatusContainsFold applies the ContainsFold predicate on the "sync_status" field.

func SyncStatusEQ

func SyncStatusEQ(v string) predicate.MCPUpstream

SyncStatusEQ applies the EQ predicate on the "sync_status" field.

func SyncStatusEqualFold

func SyncStatusEqualFold(v string) predicate.MCPUpstream

SyncStatusEqualFold applies the EqualFold predicate on the "sync_status" field.

func SyncStatusGT

func SyncStatusGT(v string) predicate.MCPUpstream

SyncStatusGT applies the GT predicate on the "sync_status" field.

func SyncStatusGTE

func SyncStatusGTE(v string) predicate.MCPUpstream

SyncStatusGTE applies the GTE predicate on the "sync_status" field.

func SyncStatusHasPrefix

func SyncStatusHasPrefix(v string) predicate.MCPUpstream

SyncStatusHasPrefix applies the HasPrefix predicate on the "sync_status" field.

func SyncStatusHasSuffix

func SyncStatusHasSuffix(v string) predicate.MCPUpstream

SyncStatusHasSuffix applies the HasSuffix predicate on the "sync_status" field.

func SyncStatusIn

func SyncStatusIn(vs ...string) predicate.MCPUpstream

SyncStatusIn applies the In predicate on the "sync_status" field.

func SyncStatusLT

func SyncStatusLT(v string) predicate.MCPUpstream

SyncStatusLT applies the LT predicate on the "sync_status" field.

func SyncStatusLTE

func SyncStatusLTE(v string) predicate.MCPUpstream

SyncStatusLTE applies the LTE predicate on the "sync_status" field.

func SyncStatusNEQ

func SyncStatusNEQ(v string) predicate.MCPUpstream

SyncStatusNEQ applies the NEQ predicate on the "sync_status" field.

func SyncStatusNotIn

func SyncStatusNotIn(vs ...string) predicate.MCPUpstream

SyncStatusNotIn applies the NotIn predicate on the "sync_status" field.

func TeamID

func TeamID(v uuid.UUID) predicate.MCPUpstream

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.MCPUpstream

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.MCPUpstream

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDIsNil

func TeamIDIsNil() predicate.MCPUpstream

TeamIDIsNil applies the IsNil predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.MCPUpstream

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.MCPUpstream

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func TeamIDNotNil

func TeamIDNotNil() predicate.MCPUpstream

TeamIDNotNil applies the NotNil predicate on the "team_id" field.

func Type

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.MCPUpstream

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.MCPUpstream

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.MCPUpstream

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.MCPUpstream

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.MCPUpstream

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.MCPUpstream

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.MCPUpstream

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.MCPUpstream

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.MCPUpstream

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.MCPUpstream

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.MCPUpstream

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.MCPUpstream

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.MCPUpstream

TypeNotIn applies the NotIn predicate on the "type" field.

func URL

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.MCPUpstream

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.MCPUpstream

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.MCPUpstream

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.MCPUpstream

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.MCPUpstream

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.MCPUpstream

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.MCPUpstream

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.MCPUpstream

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.MCPUpstream

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.MCPUpstream

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.MCPUpstream

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.MCPUpstream

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.MCPUpstream

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MCPUpstream

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MCPUpstream

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MCPUpstream

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MCPUpstream

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.MCPUpstream

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MCPUpstream

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MCPUpstream

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MCPUpstream

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.MCPUpstream

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v uuid.UUID) predicate.MCPUpstream

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.MCPUpstream

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.MCPUpstream

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.MCPUpstream

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.MCPUpstream

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.MCPUpstream

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.MCPUpstream

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MCPUpstream queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByEnabled

func ByEnabled(opts ...sql.OrderTermOption) OrderOption

ByEnabled orders the results by the enabled field.

func ByGroups

func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroups orders the results by groups terms.

func ByGroupsCount

func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByGroupsCount orders the results by groups count.

func ByHealthCheckedAt

func ByHealthCheckedAt(opts ...sql.OrderTermOption) OrderOption

ByHealthCheckedAt orders the results by the health_checked_at field.

func ByHealthStatus

func ByHealthStatus(opts ...sql.OrderTermOption) OrderOption

ByHealthStatus orders the results by the health_status field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLastSyncedAt

func ByLastSyncedAt(opts ...sql.OrderTermOption) OrderOption

ByLastSyncedAt orders the results by the last_synced_at field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByScope

func ByScope(opts ...sql.OrderTermOption) OrderOption

ByScope orders the results by the scope field.

func BySlug

func BySlug(opts ...sql.OrderTermOption) OrderOption

BySlug orders the results by the slug field.

func BySyncStatus

func BySyncStatus(opts ...sql.OrderTermOption) OrderOption

BySyncStatus orders the results by the sync_status field.

func ByTeamField

func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption

ByTeamField orders the results by team field.

func ByTeamGroupMcpUpstreams

func ByTeamGroupMcpUpstreams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamGroupMcpUpstreams orders the results by team_group_mcp_upstreams terms.

func ByTeamGroupMcpUpstreamsCount

func ByTeamGroupMcpUpstreamsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamGroupMcpUpstreamsCount orders the results by team_group_mcp_upstreams count.

func ByTeamID

func ByTeamID(opts ...sql.OrderTermOption) OrderOption

ByTeamID orders the results by the team_id field.

func ByTools

func ByTools(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTools orders the results by tools terms.

func ByToolsCount

func ByToolsCount(opts ...sql.OrderTermOption) OrderOption

ByToolsCount orders the results by tools count.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByURL

func ByURL(opts ...sql.OrderTermOption) OrderOption

ByURL orders the results by the url field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

type Scope

type Scope string

Scope defines the type for the "scope" enum field.

const (
	ScopeUser     Scope = "user"
	ScopePlatform Scope = "platform"
	ScopeTeam     Scope = "team"
)

Scope values.

func (Scope) String

func (s Scope) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL