database

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 18 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 {
	nodeIface.Service
	DBFactory kvdb.Factory
	// contains filtered or unexported fields
}

func New

func New(srv nodeIface.Service, factory kvdb.Factory) (service *Service, err error)

func (*Service) Cache

func (s *Service) Cache() components.Cache

func (*Service) CheckTns

func (*Service) Close

func (s *Service) Close() error

func (*Service) Context

func (s *Service) Context() context.Context

func (*Service) Database

func (s *Service) Database(context iface.Context) (database iface.Database, err error)

func (*Service) Databases

func (s *Service) Databases() map[string]iface.Database

func (*Service) Global

func (s *Service) Global(projectID string) (db iface.Database, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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