meteringDM

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectDbWithCompute

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

func (DirectDbWithCompute) ComputeSettlement

func (dm DirectDbWithCompute) ComputeSettlement(projectID int) (ms metering.Statement, err error)

func (DirectDbWithCompute) Query

func (dm DirectDbWithCompute) Query(projectID int, mType int, typeInfo string) (ms metering.Statement, err error)

func (DirectDbWithCompute) QueryAll

func (dm DirectDbWithCompute) QueryAll(projectID int, mType int) (mss []metering.Statement, err error)

func (DirectDbWithCompute) QueryWithCI

func (dm DirectDbWithCompute) QueryWithCI(projectID int, mType int, typeInfo string) (ms metering.Statement, err error)

type MeteringDM

type MeteringDM interface {
	MeteringReadOnlyDM

	// if not found, Compute and Insert into db.
	QueryWithCI(projectID int, mType int, typeInfo string) (ms metering.Statement, err error)

	ComputeSettlement(projectID int) (ms metering.Statement, err error)
}

type MeteringReadOnlyDM

type MeteringReadOnlyDM interface {
	Query(projectID int, mType int, typeInfo string) (ms metering.Statement, err error)
	QueryAll(projectID int, mType int) (mss []metering.Statement, err error)
}

Jump to

Keyboard shortcuts

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