contenttype

package
v0.0.0-...-fac03c6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType struct {
	Key        string `storm:"id" json:"key" xml:"key" form:"key" valid:"required,alphanum"`
	Validation string `json:"validation" xml:"validation" form:"validation" valid:"required,json"`
}

ContentType explains the content type object

func (ContentType) Schema

func (c ContentType) Schema() *gojsonschema.Schema

Schema returns the prepared json schema

func (*ContentType) SetSchema

func (c *ContentType) SetSchema(s *gojsonschema.Schema)

SetSchema adds the schema to cache

Jump to

Keyboard shortcuts

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