repository

package
v0.0.0-...-6c1e425 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenGormSqlServerDB

func OpenGormSqlServerDB(server, database string, port int) (*gorm.DB, error)

Types

type Logger

type Logger struct {
}

func NewLogger

func NewLogger() Logger

func (Logger) Error

func (l Logger) Error(ctx context.Context, msg string, opts ...interface{})

func (Logger) Info

func (l Logger) Info(ctx context.Context, msg string, opts ...interface{})

func (Logger) LogMode

func (l Logger) LogMode(logger.LogLevel) logger.Interface

func (Logger) Trace

func (l Logger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)

func (Logger) Warn

func (l Logger) Warn(ctx context.Context, msg string, opts ...interface{})

type Repository

type Repository interface {
	GetNodePools() ([]models.NodePoolDto, error)
	GetContainers(from, to time.Time) ([]models.ContainerDto, error)
	GetNodePoolCost() ([]models.NodePoolCostDto, error)
}

func NewGormRepository

func NewGormRepository(db *gorm.DB) Repository

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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