Documentation ¶
Index ¶
- func Add(file string, content []byte)
- func Get(file string) ([]byte, bool)
- func GetAllOrbits() map[string]map[string]map[string][]int
- func GetSatelliteOrbits() map[string]map[string]int
- func Has(file string) bool
- func Interface2Int(intf interface{}) int
- func Intersect(a map[int]interface{}, b map[int]interface{}) map[int]interface{}
- func Logger() *zerolog.Logger
- func LookUpOrbit(dg *DiceGenerator, ring bool) int
- func MaxInt(nums ...int) int
- func MinInt(nums ...int) int
- func ProcessError(err error)
- type Config
- type DiceGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllOrbits ¶
GetAllOrbits Stellar orbits
func GetSatelliteOrbits ¶
GetSatelliteOrbits Get the satellite orbits tables
func Interface2Int ¶
func Interface2Int(intf interface{}) int
Interface2Int Convert interface{} to integer
func LookUpOrbit ¶
func LookUpOrbit(dg *DiceGenerator, ring bool) int
LookUpOrbit Lookup the satellite orbits
Types ¶
type Config ¶
type Config struct { LogLevel string `yaml:"loglevel" envconfig:"LOG_LEVEL"` Database string `yaml:"database" envconfig:"DATABASE"` Username string `yaml:"username" envconfig:"DBUSERNAME"` Password string `yaml:"password" envconfig:"DBPASSWORD"` Seed string `yaml:"seed" envconfig:"RNG_SEED"` }
Config Basic application configuration
type DiceGenerator ¶
type DiceGenerator struct {
// contains filtered or unexported fields
}
DiceGenerator allows for rolling dice
func NewDiceGenerator ¶
func NewDiceGenerator(seed string) DiceGenerator
NewDiceGenerator Create new DiceGenerator
func (*DiceGenerator) RollDice ¶
func (dg *DiceGenerator) RollDice(dice int) int
RollDice Roll a specified number of dice
func (*DiceGenerator) RollDiceWithModifier ¶
func (dg *DiceGenerator) RollDiceWithModifier(dice int, mod int) int
RollDiceWithModifier Roll an arbitrary number of d6 with a modifer at the end.
func (*DiceGenerator) Select ¶
func (dg *DiceGenerator) Select(numElements int) int
Click to show internal directories.
Click to hide internal directories.