store

package
v0.0.0-...-b47a7f1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Items []*Item `json:"items"`
}

type Inventory

type Inventory struct {
	Pk     int    `storm:"id,increment"`
	Owner  string `storm:"index"`
	ItemId string `storm:"index"`
}

type Item

type Item struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Cost   int    `json:"cost"`
	Unique bool   `json:"unique"`
}

type StoreModule

type StoreModule struct {
	// contains filtered or unexported fields
}

func NewStoreModule

func NewStoreModule(bot *teletran.Bot, config *Config) *StoreModule

Jump to

Keyboard shortcuts

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