model

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Domain string      `json:"domain"`
	Key    string      `json:"key"`
	Value  interface{} `json:"value"`
	Exp    *time.Time  `json:"exp"`
}

type CacheInput

type CacheInput struct {
	Domain string      `json:"domain"`
	Key    string      `json:"key"`
	Value  interface{} `json:"value"`
	Exp    *time.Time  `json:"exp"`
}

type CacheRef

type CacheRef struct {
	Domain string `json:"domain"`
	Key    string `json:"key"`
}

type Entity

type Entity struct {
	Domain string                 `json:"domain"`
	Type   string                 `json:"type"`
	Key    string                 `json:"key"`
	Values map[string]interface{} `json:"values"`
}

type EntityInput

type EntityInput struct {
	Domain string                 `json:"domain"`
	Type   string                 `json:"type"`
	Key    string                 `json:"key"`
	Values map[string]interface{} `json:"values"`
}

type EntityRef

type EntityRef struct {
	Domain string `json:"domain"`
	Type   string `json:"type"`
	Key    string `json:"key"`
}

type Event

type Event struct {
	ID     string                 `json:"id"`
	Entity *Entity                `json:"entity"`
	Method string                 `json:"method"`
	Claims map[string]interface{} `json:"claims"`
	Time   int                    `json:"time"`
}

type EventRef

type EventRef struct {
	Domain string `json:"domain"`
	Type   string `json:"type"`
	Key    string `json:"key"`
	ID     string `json:"id"`
}

type Message

type Message struct {
	Domain  string                 `json:"domain"`
	Channel string                 `json:"channel"`
	Type    string                 `json:"type"`
	Body    map[string]interface{} `json:"body"`
}

type Mutex

type Mutex struct {
	Domain string     `json:"domain"`
	Key    string     `json:"key"`
	Exp    *time.Time `json:"exp"`
}

type MutexRef

type MutexRef struct {
	Domain string `json:"domain"`
	Key    string `json:"key"`
}

type PeerMessage

type PeerMessage struct {
	ID      string                 `json:"id"`
	Domain  string                 `json:"domain"`
	Channel string                 `json:"channel"`
	Type    string                 `json:"type"`
	Body    map[string]interface{} `json:"body"`
	Claims  map[string]interface{} `json:"claims"`
	Time    int                    `json:"time"`
}

type SearchEntityOpts

type SearchEntityOpts struct {
	Domain      string `json:"domain"`
	Type        string `json:"type"`
	QueryString string `json:"query_string"`
	Limit       int    `json:"limit"`
	Offset      *int   `json:"offset"`
	Sort        *Sort  `json:"sort"`
}

type SearchEventOpts

type SearchEventOpts struct {
	Domain      string `json:"domain"`
	Type        string `json:"type"`
	QueryString string `json:"query_string"`
	Limit       int    `json:"limit"`
	Min         *int   `json:"min"`
	Max         *int   `json:"max"`
	Offset      *int   `json:"offset"`
	Sort        *Sort  `json:"sort"`
}

type Sort

type Sort struct {
	Field   string `json:"field"`
	Reverse *bool  `json:"reverse"`
}

type StreamEventOpts

type StreamEventOpts struct {
	Domain string `json:"domain"`
	Type   string `json:"type"`
}

type StreamMessageOpts

type StreamMessageOpts struct {
	Domain  string `json:"domain"`
	Channel string `json:"channel"`
	Type    string `json:"type"`
}

Jump to

Keyboard shortcuts

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