interfaces

package
v0.0.0-...-e341e2a Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonPrefix = ""
	JsonIndent = "  "
)

Constants used for serializations

Variables

This section is empty.

Functions

This section is empty.

Types

type Expandable

type Expandable interface {
	Expand(obj Object) error
	Collapse() (*Object, error)
}

Interface used to expand JSON entites that contain different relations. In short, entity IDs are transformed in those entities in full inside the json objects that implement this interface.

Each database model should have an expanded representation that is used for receiving/returning data from requests

type Object

type Object interface {
	Equal(obj Object) bool
}

Interface for defining the models as Objects which can be compared with other objects.

This interface is mainly used in order to interpret unit test results

type Serializable

type Serializable interface {
	SerializeJson() ([]byte, error)
	DeserializeJson(obj []byte) error
}

Object that can be serialized and deserialized using JSON data type

Jump to

Keyboard shortcuts

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