editor

package
v0.0.0-...-97ae234 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mux

func Mux() http.Handler

Types

type CreateConditionRequest

type CreateConditionRequest struct {
	ID   string                   `json:"id"`
	Stat map[string]StatCondition `json:"stat,omitempty"`
}

type CreateEncounterRequest

type CreateEncounterRequest struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Story       string `json:"story"`
}

type CreateLocationRequest

type CreateLocationRequest struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type PatchLocationRequest

type PatchLocationRequest struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type StatCondition

type StatCondition struct {
	Min  *int `yaml:"min" json:"min"`
	Max  *int `yaml:"max" json:"max"`
	Hide bool `yaml:"hide" json:"hide"`
}

Jump to

Keyboard shortcuts

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