Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltRepository ¶
type BoltRepository struct { Path string // contains filtered or unexported fields }
func (*BoltRepository) Connect ¶
func (b *BoltRepository) Connect() error
func (*BoltRepository) Get ¶
func (b *BoltRepository) Get(uid string) *core.CombatReportCalculation
func (*BoltRepository) Insert ¶
func (b *BoltRepository) Insert(calculation core.CombatReportCalculation) string
func (*BoltRepository) Update ¶
func (b *BoltRepository) Update(uid string, calculation core.CombatReportCalculation) error
type RedisRepository ¶
func (*RedisRepository) Connect ¶
func (r *RedisRepository) Connect() error
func (*RedisRepository) Get ¶
func (r *RedisRepository) Get(id string) *core.CombatReportCalculation
func (*RedisRepository) Insert ¶
func (r *RedisRepository) Insert(calculation core.CombatReportCalculation) string
func (*RedisRepository) Update ¶
func (r *RedisRepository) Update(id string, calc core.CombatReportCalculation) error
type Repo ¶
type Repo interface { Connect() error Insert(core.CombatReportCalculation) string Update(string, core.CombatReportCalculation) error Get(string) *core.CombatReportCalculation }
Click to show internal directories.
Click to hide internal directories.