appsettings

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(db *bun.DB) *Service

func (*Service) GetJSON

func (svc *Service) GetJSON(ctx context.Context, key string, out interface{}) (bool, error)

GetJSON loads the JSON-encoded value for key into out. Returns (false, nil) if no row exists.

func (*Service) SetJSON

func (svc *Service) SetJSON(ctx context.Context, key string, value interface{}) error

SetJSON stores the JSON-encoded value at key. Upserts on conflict.

Jump to

Keyboard shortcuts

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