Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchemaConfigContext ¶
func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context.Context
NewSchemaConfigContext returns a new context with the given SchemaConfig attached.
Types ¶
type SchemaConfig ¶
type SchemaConfig struct {
EmailVerificationToken string // EmailVerificationToken table.
Entitlement string // Entitlement table.
Group string // Group table.
GroupMembership string // GroupMembership table.
GroupSetting string // GroupSetting table.
Integration string // Integration table.
Invite string // Invite table.
OauthProvider string // OauthProvider table.
OhAuthTooToken string // OhAuthTooToken table.
OrgMembership string // OrgMembership table.
Organization string // Organization table.
OrganizationPersonalAccessTokens string // Organization-personal_access_tokens->PersonalAccessToken table.
OrganizationSetting string // OrganizationSetting table.
PasswordResetToken string // PasswordResetToken table.
PersonalAccessToken string // PersonalAccessToken table.
User string // User table.
UserSetting string // UserSetting table.
Webauthn string // Webauthn table.
}
SchemaConfig represents alternative schema names for all tables that can be passed at runtime.
func SchemaConfigFromContext ¶
func SchemaConfigFromContext(ctx context.Context) SchemaConfig
SchemaConfigFromContext returns a SchemaConfig stored inside a context, or empty if there isn't one.
Click to show internal directories.
Click to hide internal directories.