factory

package
v0.0.0-...-2540817 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultStoreFactory

func NewDefaultStoreFactory(dbPool *sql.DB) api.StoreFactory

NewDefaultStoreFactory creates a new default store factory

Types

type DefaultStoreFactory

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

DefaultStoreFactory is default factory for getting store interfaces

func (*DefaultStoreFactory) EndpointStore

func (f *DefaultStoreFactory) EndpointStore() (api.EndpointRepository, error)

EndpointStore gets store for obtaining endpoint information

func (*DefaultStoreFactory) TokenStore

func (f *DefaultStoreFactory) TokenStore() (api.TokenRepository, error)

TokenStore gets store for obtaining endpoint information

Jump to

Keyboard shortcuts

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