models

package
v0.0.0-...-8e295f1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessResponse

type AccessResponse struct {
	Get  bool   `json:"get,omitempty"`
	Call string `json:"call,omitempty"`
}

type AddEvent

type AddEvent struct {
	Value interface{} `json:"value"`
	Idx   int         `json:"idx"`
}

type CanvasItem

type CanvasItem struct {
	Creator string `json:"creator"`
	Date    int64  `json:"date"`
	Title   string `json:"title"`
	Msg     string `json:"msg"`
	Config  string `json:"config"`
}

type ChangeEvent

type ChangeEvent struct {
	Values map[string]interface{} `json:"values"`
}

type CollectionResponse

type CollectionResponse struct {
	Collection interface{} `json:"collection"`
	Query      string      `json:"query,omitempty"`
}

type ErrorResponse

type ErrorResponse struct {
	Error *res.Error `json:"error"`
}

type Like

type Like struct {
	Creator string `json:"creator"`
	Date    int64  `json:"date"`
}

type Message

type Message struct {
	Creator string `json:"creator"`
	Msg     string `json:"msg"`
	Date    int64  `json:"date"`
}

Simple Message

type ModelResponse

type ModelResponse struct {
	Model interface{} `json:"model"`
	Query string      `json:"query,omitempty"`
}

type News

type News struct {
	Creator string `json:"creator"`
	Title   string `json:"title"`
	Content string `json:"content"`
	Date    int64  `json:"date"`
}

type QueryResponse

type QueryResponse struct {
	Events []ResEvent `json:"events"`
}

type RemoveEvent

type RemoveEvent struct {
	Idx int `json:"idx"`
}

type RequestAction

type RequestAction struct {
	ID     int64       `json:"id"`
	Method string      `json:"method"`
	Params interface{} `json:"params"`
}

type ResEvent

type ResEvent struct {
	Event string      `json:"event"`
	Data  interface{} `json:"data"`
}

type ResQueryEvent

type ResQueryEvent struct {
	Subject string `json:"subject"`
}

type ResQueryRequest

type ResQueryRequest struct {
	Query string `json:"query"`
}

type ResRequest

type ResRequest struct {
	CID        string              `json:"cid"`
	Params     json.RawMessage     `json:"params"`
	Token      json.RawMessage     `json:"token"`
	Header     map[string][]string `json:"header"`
	Host       string              `json:"host"`
	RemoteAddr string              `json:"remoteAddr"`
	URI        string              `json:"uri"`
	Query      string              `json:"query"`
}

type ResetEvent

type ResetEvent struct {
	Resources []string `json:"resources,omitempty"`
	Access    []string `json:"access,omitempty"`
}

type Room

type Room struct {
	Creator string `json:"creator"`
	Date    int64  `json:"date"`
	Title   string `json:"title"`
}

type SetCanvasItem

type SetCanvasItem struct {
	Creator *string `json:"creator,omitempty"`
	Date    *int64  `json:"date,omitempty"`
	Title   *string `json:"title,omitempty"`
	Msg     *string `json:"msg,omitempty"`
	Config  *string `json:"config,omitempty"`
}

type SetMessage

type SetMessage struct {
	Creator *string `json:"creator,omitempty"`
	Msg     *string `json:"msg,omitempty"`
	Date    *int64  `json:"date,omitempty"`
}

type SetNews

type SetNews struct {
	Creator *string `json:"creator,omitempty"`
	Title   *string `json:"title,omitempty"`
	Content *string `json:"content,omitempty"`
	Date    *int64  `json:"date,omitempty"`
}

type SetRoom

type SetRoom struct {
	Creator *string `json:"creator,omitempty"`
	Date    *int64  `json:"date,omitempty"`
	Title   *string `json:"title,omitempty"`
}

type SuccessResponse

type SuccessResponse struct {
	Result interface{} `json:"result"`
}

type TokenEvent

type TokenEvent struct {
	Token interface{} `json:"token"`
}

Jump to

Keyboard shortcuts

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