model

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbParams

type DbParams struct {
	// func which creates classifier out of context
	Classifier func(ctx context.Context) map[string]interface{}

	// Parameters for database customization
	BaseDbParams rest.BaseDbParams

	// Migrations to be executed during application start
	Migrations *migrate.Migrations

	RoReplica bool
}

DbParams allows store parameters for database creation

type PgConnProperties

type PgConnProperties struct {
	Url      string
	Username string
	Password string
	RoHost   string
	Role     string
}

PgConnProperties is used for storing connection properties for database

type PgOptions

type PgOptions struct {
	// Options for bun.DB object creation
	BunOptions []bun.DBOption
	// Options for sql.DB object creation
	SqlOptions []stdlib.OptionOpenDB
}

PgOptions is a struct which should be used for datasource configuration

Jump to

Keyboard shortcuts

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