Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Namespace string Version string MountStats bool `json:"-"` StatsURL string Debug bool }
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
type Document ¶
type Document struct { Data interface{} Meta map[string]interface{} Errors []Error // contains filtered or unexported fields }
func NewCollectionDocument ¶
func NewCollectionDocument() Document
func NewDocument ¶
func NewDocument() Document
func NewErrorDocument ¶
func NewErrorDocument() Document
func (Document) MarshalJSON ¶
type Error ¶
type ErrorDocument ¶
type ErrorDocument Document
type GinApi ¶
type GinApi struct { *gin.RouterGroup Api }
type Resource ¶
type Resource interface { GetId() string Attributes() interface{} // contains filtered or unexported methods }
type ResourceObject ¶
type ResourceObject struct { Id string Object interface{} }
func (ResourceObject) Attributes ¶
func (r ResourceObject) Attributes() interface{}
func (ResourceObject) GetId ¶
func (r ResourceObject) GetId() string
Click to show internal directories.
Click to hide internal directories.