Documentation ¶
Overview ¶
Copyright © 2022 Sylvia Waldron
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Sylvia Waldron ¶
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrNoIWad = errors.New("no iwad was provided") ErrNoPWads = errors.New("no pwads were provided") ErrNoPortArgs = errors.New("no portArgs were provided") ErrNoEnv = errors.New("no env was provided") ErrNoPort = errors.New("no port was provided") ErrInvalidCompLevel = errors.New("complevel must be between -1 and 17 or 21") ErrInvalidSkill = errors.New("skill must be between 1 and 5") ErrInvalidPWad = errors.New("pwad doesn't exist") )
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Name string Port *port.Port IWad *iwad.IWad PWads Args PortArgs Args Env Args CompLevel CompLevel }
Game represents a Doom game.
func (*Game) GenearteCmd ¶
type Repository ¶
type SqliteRepository ¶
type SqliteRepository struct {
// contains filtered or unexported fields
}
func NewSqliteRepository ¶
func NewSqliteRepository(db *db.DB) (*SqliteRepository, error)
func (*SqliteRepository) Create ¶
func (r *SqliteRepository) Create(game *Game) error
func (*SqliteRepository) Delete ¶
func (r *SqliteRepository) Delete(name string) error
func (*SqliteRepository) GetAll ¶
func (r *SqliteRepository) GetAll() ([]Game, error)
func (*SqliteRepository) GetByName ¶
func (r *SqliteRepository) GetByName(name string) (*Game, error)
func (*SqliteRepository) Update ¶
func (r *SqliteRepository) Update(updated *Game) error