ffjson_structs

package
v0.0.0-...-301923a Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateReply

type CreateReply struct {
	Error string
	Id    string
}

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

type CreateReplyVersion struct {
	Error   string
	Version int32
	Id      string
}

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

type CreateReqItem struct {
	Item wyc.Item
}

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 struct {
	Link wyc.Link
}

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

type CreateReqResource struct {
	Resource wyc.Resource
}

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

type CreateReqVersion struct {
	Version wyc.Version
}

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

func (j *DeleteReq) MarshalJSON() ([]byte, error)

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

func (j *DeleteReq) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*DeleteReq) UnmarshalJSONFFLexer

func (j *DeleteReq) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

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

type FindReplyItem struct {
	All   []wyc.Item
	Error string
}

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 struct {
	All   []wyc.Link
	Error string
}

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

type FindReplyResource struct {
	All   []wyc.Resource
	Error string
}

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

type FindReplyVersion struct {
	All   []wyc.Version
	Error string
}

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

type FindReq struct {
	Query  []wyc.QueryDesc
	Limit  int32
	Offset int32
}

All find requests are the same, a list of QueryDescription objects

func (*FindReq) MarshalJSON

func (j *FindReq) MarshalJSON() ([]byte, error)

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

func (j *FindReq) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*FindReq) UnmarshalJSONFFLexer

func (j *FindReq) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type GetPublishedReply

type GetPublishedReply struct {
	Error   string
	Version wyc.Version
}

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

type UpdateFacetsReq struct {
	Id     string
	Facets map[string]string
}

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

Jump to

Keyboard shortcuts

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