models

package
v0.0.0-...-a6fc1d5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name  string `json:"name"`
	Value int    `json:"value"`
}

Attribute |

type Character

type Character struct {
	Name      string      `json:"name"`
	Age       int         `json:"age"`
	Bio       string      `json:"bio"`
	Race      string      `json:"race"`
	Class     string      `json:"class"`
	Attr      []Attribute `json:"attributes"`
	Skills    []Skill     `json:"skills"`
	Inventory []Item      `json:"inventory"`
}

Character |

type HTTPErrorMessage

type HTTPErrorMessage struct {
	Message string `json:"message"`
}

HTTPErrorMessage |

func NewHTTPErrorMessage

func NewHTTPErrorMessage(m string) *HTTPErrorMessage

NewHTTPErrorMessage |

type Item

type Item struct {
	Name   string `json:"name"`
	Type   string `json:"type"`
	Weight int    `json:"weight"`
	Value  int    `json:"value"`
}

Item |

type Skill

type Skill struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	Power       string `json:"power"`
}

Skill |

Jump to

Keyboard shortcuts

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