types

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSettings

type AuthSettings struct {
	bun.BaseModel `bun:"table:auth_settings,alias:as"`

	// ConfigVersion is the version number for optimistic concurrency control
	ConfigVersion int64 `json:"config_version" bun:",pk,autoincrement"`
	// The unique key for the config block (e.g., "runtime_config" for the main config)
	Key string `json:"key" bun:",unique,type:varchar(255)"`
	// Value contains the JSON-encoded configuration data
	Value json.RawMessage `json:"value" bun:"type:jsonb"`
	// CreatedAt is the timestamp when this setting was created
	CreatedAt time.Time `json:"created_at" bun:",nullzero,notnull,default:current_timestamp"`
	// UpdatedAt is the timestamp when this setting was last updated
	UpdatedAt time.Time `json:"updated_at" bun:",nullzero,notnull,default:current_timestamp"`
}

AuthSettings stores dynamic configuration for the auth system in the database. This is used primarily in database mode to persist the full runtime configuration.

func (*AuthSettings) BeforeAppendModel

func (s *AuthSettings) BeforeAppendModel(ctx context.Context, query bun.Query) error

func (AuthSettings) TableName

func (AuthSettings) TableName() string

TableName specifies the table name for the AuthSettings model

type ConfigManagerPluginConfig

type ConfigManagerPluginConfig struct {
	Enabled bool `json:"enabled" toml:"enabled"`
}

Jump to

Keyboard shortcuts

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