types

package
v0.0.0-...-0f68323 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType pb.ActivityActionType

func (ActionType) GetPoints

func (a ActionType) GetPoints(cfg Points) (float32, error)

type Config

type Config struct {
	Port   int    `envconfig:"PORT" default:"8000"`
	Points Points `envconfig:"POINTS"`
	DB     struct {
		Host     string `envconfig:"HOST" default:"127.0.0.1"`
		Port     int    `envconfig:"PORT" default:"3306"`
		DB       string `envconfig:"DB" default:"rewards"`
		Username string `envconfig:"USERNAME" default:"user"`
		Password string `envconfig:"PASSWORD" default:"pass"`
	} `envconfig:"DB"`
}

type Points

type Points struct {
	Invite    float32 `envconfig:"INVITE" default:"50"`
	AddReview float32 `envconfig:"ADD_REVIEW" default:"10"`
}

Jump to

Keyboard shortcuts

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