db

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetService added in v0.5.0

func GetService[S any, M ServiceManager[S]](sp token.ServiceProvider, tmsID token.TMSID) (S, error)

func GetStoreService added in v0.5.0

func GetStoreService[S any, M StoreServiceManager[S]](sp token.ServiceProvider, tmsID token.TMSID) (S, error)

func Key added in v0.5.0

func Key(tmsID token.TMSID) string

Types

type ServiceManager added in v0.5.0

type ServiceManager[S any] interface {
	ServiceByTMSId(token.TMSID) (S, error)
}

type StoreServiceManager added in v0.5.0

type StoreServiceManager[S any] interface {
	StoreServiceByTMSId(token.TMSID) (S, error)
}

func NewStoreServiceManager added in v0.5.0

func NewStoreServiceManager[S any, T any](config *config.Service, prefix string, constructor func(name driver2.PersistenceName, params ...string) (S, error), mapper func(S) (T, error)) StoreServiceManager[T]

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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