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 { ChatHistories string // ChatHistories table. LogChatHistoriesRecap string // LogChatHistoriesRecap table. LogSummarizations string // LogSummarizations table. MetricOpenAIChatCompletionTokenUsage string // MetricOpenAIChatCompletionTokenUsage table. SlackOAuthCredentials string // SlackOAuthCredentials table. TelegramChatAutoRecapsSubscribers string // TelegramChatAutoRecapsSubscribers table. TelegramChatFeatureFlags string // TelegramChatFeatureFlags table. TelegramChatRecapsOptions string // TelegramChatRecapsOptions 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.