schema

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// FeedsIndexRO is the index alias for read-only access to feeds.
	FeedsIndexRO = feedsIndexPrefix + indexReadSuffix
	// FeedsIndexRW is the index alias for read-write access to feeds.
	FeedsIndexRW = feedsIndexPrefix + indexWriteSuffix
	// ItemsIndexRO is the index alias for read-only access to items.
	ItemsIndexRO = itemsSchemaPrefix + indexReadSuffix
	// ItemsIndexRW is the index alias for read-write access to items.
	ItemsIndexRW = itemsSchemaPrefix + indexWriteSuffix
	// SubscriptionsIndexRO is the index alias for read-only access to subscriptions.
	SubscriptionsIndexRO = subscriptionsSchemaPrefix + indexReadSuffix
	// SubscriptionsIndexRW is the index alias for read-write access to subscriptions.
	SubscriptionsIndexRW = subscriptionsSchemaPrefix + indexWriteSuffix
	// FavoritesIndexRO is the index alias for read-only access to subscriptions.
	FavoritesIndexRO = favoritesSchemaPrefix + indexReadSuffix
	// FavoritesIndexRW is the index alias for read-only access to subscriptions.
	FavoritesIndexRW = favoritesSchemaPrefix + indexWriteSuffix
	// UsersIndexRO is the index alias for read-only access to users.
	UsersIndexRO = usersSchemaPrefix + indexReadSuffix
	// UsersIndexRW is the index alias for read-write access to users.
	UsersIndexRW = usersSchemaPrefix + indexWriteSuffix
	// SessionsIndexRO is the index alias for read-only access to session data.
	SessionsIndexRO = sessionsSchemaPrefix + indexReadSuffix
	// SessionsIndexRW is the index alias for read-write access to session data.
	SessionsIndexRW = sessionsSchemaPrefix + indexWriteSuffix
	// SchedulerIndexRO is the index alias for read-only access to scheduler data.
	SchedulerIndexRO = schedulerIndexPrefix + indexReadSuffix
	// SchedulerIndexRW is the index alias for read-write access to scheduler data.
	SchedulerIndexRW = schedulerIndexPrefix + indexWriteSuffix
)

Variables

This section is empty.

Functions

func CreateIndices added in v0.81.0

func CreateIndices(ctx context.Context, api *elasticsearch.TypedClient, opts *IndicesOptions) error

CreateIndices creates indices and appropriate read/write aliases.

func MigrateIndices added in v0.87.0

func MigrateIndices(ctx context.Context, api *elasticsearch.TypedClient, opts *IndicesOptions) error

MigrateIndices performs all requested schema migrations.

func UpdateILMPolicies added in v0.87.0

func UpdateILMPolicies(ctx context.Context, api *elasticsearch.TypedClient, opts *ILMOptions) error

UpdateILMPolicies will update all the specified ILM policies.

func UpdateIndicesSchema added in v0.87.0

func UpdateIndicesSchema(ctx context.Context, api *elasticsearch.TypedClient, opts *IndicesOptions) error

UpdateIndicesSchema performs all requested schema migrations.

Types

type ILMOptions added in v0.87.0

type ILMOptions struct {
	Policies []string `arg:"" default:"all" enum:"all,logs"`
}

ILMOptions contains the options for performing ILM schema operations.

type IndicesOptions added in v0.87.0

type IndicesOptions struct {
	Indices []string `` /* 139-byte string literal not displayed */
}

IndicesOptions contains the options for performing index schema operations.

type Option

type Option[T any] func(T)

Option is a reusable generic function for applying options to a type.

Jump to

Keyboard shortcuts

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