service

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConnectionOptions

func DefaultConnectionOptions(ctxIn context.Context, credentialsProvider secret.SecretProvider) (sql.ConnectOptions, error)

DefaultConnectionOptions returns default ConnectOptions

Types

type Service

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

Service represent operation with PostgresSQL

func NewStorageService

func NewStorageService(ctxIn context.Context, credentialsProvider secret.SecretProvider) (*Service, error)

NewStorageService create new instance of Service

func NewStorageServiceWithConnectionOptions

func NewStorageServiceWithConnectionOptions(ctxIn context.Context, options sql.ConnectOptions) (*Service, error)

NewStorageServiceWithConnectionOptions create new instance of Service with connection options

func (*Service) Close

func (c *Service) Close() error

Close closes db connection

func (*Service) DB

func (c *Service) DB() *pg.DB

DB will create a new connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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