mrc

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

GamesInfo returns GameInfo

Functions

func GetServer

func GetServer(debugMode bool, gameArgs GameToInputFiles) (*gin.Engine, string)

GetServer will run the server

Types

type Filenames

type Filenames []string

Filenames are used for storing a list of CLI values

func GetFilesFromDir

func GetFilesFromDir(path string) *Filenames

GetFilesFromDir returns a list of file names from a directory

func (*Filenames) Set

func (i *Filenames) Set(value string) error

Set adds to the ArrayFlag

func (*Filenames) String

func (i *Filenames) String() string

type GameInfo

GameInfo is the info needed to fit into MetaRefCard Returns:

  • Game label / name
  • User friendly command line description
  • Func handler for incoming request
  • Func that matches the game input format to MRC's model

type GameToInputFiles

type GameToInputFiles map[string]*Filenames

GameToInputFiles are the per-game arguments specified on the command line

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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