value

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyVerify

func KeyVerify(keyStr string) *errors.Error

Types

type Key

type Key string
const (
	KeyGMV              Key = "GMV"
	KeyOrders           Key = "ORDERS"
	KeyOrderUsers       Key = "ORDER_USERS"
	KeyPCT              Key = "PCT" //per customer transaction
	KeyDailyGMV         Key = "GMV_DAILY"
	KeyDailyOrders      Key = "ORDER_DAILY"
	KeyDailyPCT         Key = "PCT_DAILY"
	KeyDailyActiveUsers Key = "AU_DAILY"
)
const (
	NilKey Key = ""
)

func KeyOf

func KeyOf(keyStr string) (Key, *errors.Error)

func (Key) S

func (k Key) S() string

type Period

type Period string
const (
	NilPeriod   Period = ""
	TotalPeriod Period = "$"
)

func DatePeriod

func DatePeriod(dt time.Time) Period

func (Period) S

func (p Period) S() string

type Value

type Value map[Key]int64

func NewValue

func NewValue() Value

func (Value) Add

func (m Value) Add(keyStr string, val int64) *errors.Error

func (Value) Get added in v1.0.3

func (m Value) Get(key Key) int64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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