Documentation ¶
Index ¶
- Variables
- func EncodeThrough(app inter.App, content interface{}, encoders []inter.Encoder) (string, error)
- func JsonToValue(json string) support.Value
- func RequestWithFormToValue(request inter.Request) support.Value
- func RequestWithJsonToValue(request inter.Request) support.Value
- type Error
- type ErrorsToHtml
- type ErrorsToJson
- type InterfaceToHtml
- type InterfaceToJson
- type JsonReaderToJson
- type JsonToJson
- type RawToHtml
- type RawToJson
- type StringToString
- type StringerToHtml
- type ViewToHtml
Constants ¶
This section is empty.
Variables ¶
View Source
var EncodeError = errors.WithLevel(errors.WithStatus( errors.New(""), http.StatusInternalServerError), log_level.EMERGENCY)
Functions ¶
func EncodeThrough ¶
func JsonToValue ¶
Types ¶
type ErrorsToHtml ¶
func (ErrorsToHtml) EncodeThrough ¶
func (ErrorsToHtml) IsAble ¶
func (e ErrorsToHtml) IsAble(object interface{}) bool
type ErrorsToJson ¶
type ErrorsToJson struct { Jsonapi map[string]string `json:"jsonapi"` Errors []Error `json:"errors"` }
func (ErrorsToJson) EncodeThrough ¶
func (ErrorsToJson) IsAble ¶
func (e ErrorsToJson) IsAble(object interface{}) bool
type InterfaceToHtml ¶
type InterfaceToHtml struct{}
func (InterfaceToHtml) EncodeThrough ¶
func (InterfaceToHtml) IsAble ¶
func (j InterfaceToHtml) IsAble(object interface{}) bool
type InterfaceToJson ¶
type InterfaceToJson struct{}
func (InterfaceToJson) EncodeThrough ¶
func (InterfaceToJson) IsAble ¶
func (j InterfaceToJson) IsAble(_ interface{}) bool
type JsonReaderToJson ¶
type JsonReaderToJson struct{}
func (JsonReaderToJson) EncodeThrough ¶
func (JsonReaderToJson) IsAble ¶
func (j JsonReaderToJson) IsAble(object interface{}) bool
type JsonToJson ¶
type JsonToJson struct{}
func (JsonToJson) EncodeThrough ¶
func (JsonToJson) IsAble ¶
func (j JsonToJson) IsAble(object interface{}) bool
Determine if json is already valid
type StringToString ¶
type StringToString struct{}
func (StringToString) EncodeThrough ¶
func (StringToString) IsAble ¶
func (j StringToString) IsAble(object interface{}) bool
type StringerToHtml ¶
type StringerToHtml struct{}
func (StringerToHtml) EncodeThrough ¶
func (StringerToHtml) IsAble ¶
func (h StringerToHtml) IsAble(object interface{}) bool
type ViewToHtml ¶
type ViewToHtml struct{}
func (ViewToHtml) EncodeThrough ¶
func (ViewToHtml) IsAble ¶
func (v ViewToHtml) IsAble(object interface{}) bool
Source Files ¶
- encode_through.go
- errors.go
- errors_to_html.go
- errors_to_json.go
- html_reader_to_json.go
- interface_to_html.go
- interface_to_json.go
- json_reader_to_json.go
- json_to_json.go
- json_to_value.go
- raw_to_html.go
- raw_to_json.go
- request_with_form_to_value.go
- request_with_json_to_value.go
- string_to_string.go
- view_to_html.go
Click to show internal directories.
Click to hide internal directories.