remoteconfig

package
v0.0.0-...-03efb0c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresRemoteConfigRepository

type PostgresRemoteConfigRepository struct {
	Postgres *remoteconfigpostgres.Queries
	// contains filtered or unexported fields
}

func NewPostgresRemoteConfigRepository

func NewPostgresRemoteConfigRepository(
	postgresRepo *database.SqlRepository,
) *PostgresRemoteConfigRepository

func (*PostgresRemoteConfigRepository) CreateRemoteConfig

func (r *PostgresRemoteConfigRepository) CreateRemoteConfig(
	ctx context.Context,
	key string,
	value string,
) error

func (*PostgresRemoteConfigRepository) GetRemoteConfigByKey

func (r *PostgresRemoteConfigRepository) GetRemoteConfigByKey(
	ctx context.Context,
	key string,
) (string, error)

func (*PostgresRemoteConfigRepository) UpdateRemoteConfig

func (r *PostgresRemoteConfigRepository) UpdateRemoteConfig(
	ctx context.Context,
	key string,
	value string,
) error

type RemoteConfigCommand

type RemoteConfigCommand interface {
	CreateRemoteConfig(
		ctx context.Context,
		key string,
		value string,
	) error

	UpdateRemoteConfig(
		ctx context.Context,
		key string,
		value string,
	) error
}

type RemoteConfigQuery

type RemoteConfigQuery interface {
	GetRemoteConfigByKey(
		ctx context.Context,
		key string,
	) (string, error)
}

type RemoteConfigRepo

type RemoteConfigRepo interface {
	RemoteConfigCommand
	RemoteConfigQuery
}

Jump to

Keyboard shortcuts

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