repositories

package
v0.0.0-...-2884038 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPlayerRepository

type IPlayerRepository interface {
	StorePlayer(models.Player) (models.Player, error)
	GetPlayer(int) (models.Player, error)
}

IPlayerRepository is

type PlayerRepository

type PlayerRepository struct {
	DB infrastructures.ISQLConnection
}

PlayerRepository is

func (*PlayerRepository) GetPlayer

func (r *PlayerRepository) GetPlayer(ID int) (player models.Player, err error)

GetPlayer get agent type data by id

func (*PlayerRepository) StorePlayer

func (r *PlayerRepository) StorePlayer(data models.Player) (models.Player, error)

StorePlayer store agent type data to database

Jump to

Keyboard shortcuts

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