Documentation ¶
Index ¶
- type CreateReply
- type CreateReplyVersion
- type CreateReqCollection
- func (j *CreateReqCollection) MarshalJSON() ([]byte, error)
- func (j *CreateReqCollection) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (j *CreateReqCollection) UnmarshalJSON(input []byte) error
- func (j *CreateReqCollection) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- type CreateReqItem
- type CreateReqLink
- type CreateReqResource
- type CreateReqVersion
- type DeleteReply
- type DeleteReq
- type FindReplyCollection
- func (j *FindReplyCollection) MarshalJSON() ([]byte, error)
- func (j *FindReplyCollection) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (j *FindReplyCollection) UnmarshalJSON(input []byte) error
- func (j *FindReplyCollection) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- type FindReplyItem
- type FindReplyLink
- type FindReplyResource
- type FindReplyVersion
- type FindReq
- type GetPublishedReply
- type PublishedReq
- type SetPublishedReply
- type UpdateFacetsReply
- type UpdateFacetsReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReply ¶
Every create request except Version has the same reply - an Id and an err string
func (*CreateReply) MarshalJSON ¶
func (j *CreateReply) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReply) MarshalJSONBuf ¶
func (j *CreateReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReply) UnmarshalJSON ¶
func (j *CreateReply) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReply) UnmarshalJSONFFLexer ¶
func (j *CreateReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReplyVersion ¶
Create Version includes the newly created Id, the err string and the Version number of the new version
func (*CreateReplyVersion) MarshalJSON ¶
func (j *CreateReplyVersion) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReplyVersion) MarshalJSONBuf ¶
func (j *CreateReplyVersion) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReplyVersion) UnmarshalJSON ¶
func (j *CreateReplyVersion) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReplyVersion) UnmarshalJSONFFLexer ¶
func (j *CreateReplyVersion) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReqCollection ¶
type CreateReqCollection struct {
Collection wyc.Collection
}
Sent for a Collection creation request
func (*CreateReqCollection) MarshalJSON ¶
func (j *CreateReqCollection) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReqCollection) MarshalJSONBuf ¶
func (j *CreateReqCollection) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReqCollection) UnmarshalJSON ¶
func (j *CreateReqCollection) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReqCollection) UnmarshalJSONFFLexer ¶
func (j *CreateReqCollection) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReqItem ¶
Sent for Item creation request
func (*CreateReqItem) MarshalJSON ¶
func (j *CreateReqItem) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReqItem) MarshalJSONBuf ¶
func (j *CreateReqItem) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReqItem) UnmarshalJSON ¶
func (j *CreateReqItem) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReqItem) UnmarshalJSONFFLexer ¶
func (j *CreateReqItem) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReqLink ¶
Sent for Link creation request
func (*CreateReqLink) MarshalJSON ¶
func (j *CreateReqLink) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReqLink) MarshalJSONBuf ¶
func (j *CreateReqLink) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReqLink) UnmarshalJSON ¶
func (j *CreateReqLink) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReqLink) UnmarshalJSONFFLexer ¶
func (j *CreateReqLink) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReqResource ¶
Sent for Resource creation request
func (*CreateReqResource) MarshalJSON ¶
func (j *CreateReqResource) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReqResource) MarshalJSONBuf ¶
func (j *CreateReqResource) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReqResource) UnmarshalJSON ¶
func (j *CreateReqResource) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReqResource) UnmarshalJSONFFLexer ¶
func (j *CreateReqResource) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CreateReqVersion ¶
Sent for Version creation request
func (*CreateReqVersion) MarshalJSON ¶
func (j *CreateReqVersion) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CreateReqVersion) MarshalJSONBuf ¶
func (j *CreateReqVersion) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CreateReqVersion) UnmarshalJSON ¶
func (j *CreateReqVersion) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CreateReqVersion) UnmarshalJSONFFLexer ¶
func (j *CreateReqVersion) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type DeleteReply ¶
type DeleteReply struct {
Error string
}
Sent for a deletion request reply
func (*DeleteReply) MarshalJSON ¶
func (j *DeleteReply) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*DeleteReply) MarshalJSONBuf ¶
func (j *DeleteReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*DeleteReply) UnmarshalJSON ¶
func (j *DeleteReply) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*DeleteReply) UnmarshalJSONFFLexer ¶
func (j *DeleteReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type DeleteReq ¶
type DeleteReq struct {
Id string
}
Sent for a deletion request
func (*DeleteReq) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*DeleteReq) MarshalJSONBuf ¶
func (j *DeleteReq) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*DeleteReq) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*DeleteReq) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReplyCollection ¶
type FindReplyCollection struct { All []wyc.Collection Error string }
Find Collection reply
func (*FindReplyCollection) MarshalJSON ¶
func (j *FindReplyCollection) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*FindReplyCollection) MarshalJSONBuf ¶
func (j *FindReplyCollection) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReplyCollection) UnmarshalJSON ¶
func (j *FindReplyCollection) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*FindReplyCollection) UnmarshalJSONFFLexer ¶
func (j *FindReplyCollection) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReplyItem ¶
Find Item reply
func (*FindReplyItem) MarshalJSON ¶
func (j *FindReplyItem) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*FindReplyItem) MarshalJSONBuf ¶
func (j *FindReplyItem) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReplyItem) UnmarshalJSON ¶
func (j *FindReplyItem) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*FindReplyItem) UnmarshalJSONFFLexer ¶
func (j *FindReplyItem) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReplyLink ¶
Find Link reply
func (*FindReplyLink) MarshalJSON ¶
func (j *FindReplyLink) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*FindReplyLink) MarshalJSONBuf ¶
func (j *FindReplyLink) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReplyLink) UnmarshalJSON ¶
func (j *FindReplyLink) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*FindReplyLink) UnmarshalJSONFFLexer ¶
func (j *FindReplyLink) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReplyResource ¶
Find Resource reply
func (*FindReplyResource) MarshalJSON ¶
func (j *FindReplyResource) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*FindReplyResource) MarshalJSONBuf ¶
func (j *FindReplyResource) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReplyResource) UnmarshalJSON ¶
func (j *FindReplyResource) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*FindReplyResource) UnmarshalJSONFFLexer ¶
func (j *FindReplyResource) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReplyVersion ¶
Find Item reply
func (*FindReplyVersion) MarshalJSON ¶
func (j *FindReplyVersion) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*FindReplyVersion) MarshalJSONBuf ¶
func (j *FindReplyVersion) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReplyVersion) UnmarshalJSON ¶
func (j *FindReplyVersion) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*FindReplyVersion) UnmarshalJSONFFLexer ¶
func (j *FindReplyVersion) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type FindReq ¶
All find requests are the same, a list of QueryDescription objects
func (*FindReq) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*FindReq) MarshalJSONBuf ¶
func (j *FindReq) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*FindReq) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*FindReq) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type GetPublishedReply ¶
A request to get the published version returns the Version and and err string
func (*GetPublishedReply) MarshalJSON ¶
func (j *GetPublishedReply) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*GetPublishedReply) MarshalJSONBuf ¶
func (j *GetPublishedReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*GetPublishedReply) UnmarshalJSON ¶
func (j *GetPublishedReply) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*GetPublishedReply) UnmarshalJSONFFLexer ¶
func (j *GetPublishedReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type PublishedReq ¶
type PublishedReq struct {
Id string
}
Whether we are getting the published version or setting, we only send an Id. If we're publishing a version, we send the Id of the Version If we're getting the published version, we send the Id of the parent Item
func (*PublishedReq) MarshalJSON ¶
func (j *PublishedReq) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*PublishedReq) MarshalJSONBuf ¶
func (j *PublishedReq) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*PublishedReq) UnmarshalJSON ¶
func (j *PublishedReq) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*PublishedReq) UnmarshalJSONFFLexer ¶
func (j *PublishedReq) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type SetPublishedReply ¶
type SetPublishedReply struct {
Error string
}
A request to set a version as published returns an error string indicating if it worked or not
func (*SetPublishedReply) MarshalJSON ¶
func (j *SetPublishedReply) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*SetPublishedReply) MarshalJSONBuf ¶
func (j *SetPublishedReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*SetPublishedReply) UnmarshalJSON ¶
func (j *SetPublishedReply) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*SetPublishedReply) UnmarshalJSONFFLexer ¶
func (j *SetPublishedReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type UpdateFacetsReply ¶
type UpdateFacetsReply struct {
Error string
}
Update facets only returns an error string indicating if it worked or not
func (*UpdateFacetsReply) MarshalJSON ¶
func (j *UpdateFacetsReply) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*UpdateFacetsReply) MarshalJSONBuf ¶
func (j *UpdateFacetsReply) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*UpdateFacetsReply) UnmarshalJSON ¶
func (j *UpdateFacetsReply) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*UpdateFacetsReply) UnmarshalJSONFFLexer ¶
func (j *UpdateFacetsReply) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type UpdateFacetsReq ¶
Update facets request both send the Id and the Facets to update.
func (*UpdateFacetsReq) MarshalJSON ¶
func (j *UpdateFacetsReq) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*UpdateFacetsReq) MarshalJSONBuf ¶
func (j *UpdateFacetsReq) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*UpdateFacetsReq) UnmarshalJSON ¶
func (j *UpdateFacetsReq) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*UpdateFacetsReq) UnmarshalJSONFFLexer ¶
func (j *UpdateFacetsReq) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson