Documentation ¶
Index ¶
- func OpenGormSqlServerDB(server, database string, port int) (*gorm.DB, error)
- type Logger
- func (l Logger) Error(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) Info(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) LogMode(logger.LogLevel) logger.Interface
- func (l Logger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)
- func (l Logger) Warn(ctx context.Context, msg string, opts ...interface{})
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.