method

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Columns

func Columns(withID bool) string

func ColumnsNumber

func ColumnsNumber(withID bool) int

func Table

func Table() string

Types

type DAO

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

func NewDAO

func NewDAO(dal *dal.DAL) *DAO

func (*DAO) DB

func (dao *DAO) DB() *dal.DAL

func (*DAO) GetByID

func (dao *DAO) GetByID(
	ctx context.Context,
	id string,
) (Method, error)

func (*DAO) List

func (dao *DAO) List(
	ctx context.Context,
) ([]Method, error)

type Method

type Method struct {
	ID          string
	Name        string
	Description string

	CaffeineMgExtractionYieldPerG int8
	CaffeineLossFactor            float32

	IsHot bool
}

func (*Method) PtrFields

func (entity *Method) PtrFields() []any

Jump to

Keyboard shortcuts

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