event

package
v0.0.0-...-7d7277e Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) router.GQLEvent

New creates engine server

Types

type Option

type Option func(*Options)

Option func

func EqIDs

func EqIDs(i []int64) Option

EqIDs to set equal ids option

func EqKeys

func EqKeys(i []string) Option

EqKeys to set equal keys option

func Field

func Field(s string) Option

Field to set field option

func Filters

func Filters(s map[string]interface{}) Option

Filters to set filters option

func NeIDs

func NeIDs(i []int64) Option

NeIDs to set non equal ids option

func NeKeys

func NeKeys(i []string) Option

NeKeys to set non equal keys option

func Payload

func Payload(b []byte) Option

Payload to set payload option

func Strict

func Strict(b bool) Option

Strict to set status of strict mode

type Options

type Options struct {
	Field   string
	Payload []byte
	Filters map[string]interface{}
	EqIDs   []int64
	NeIDs   []int64
	EqKeys  []string
	NeKeys  []string
	Strict  bool
}

Options is the engine server options

Jump to

Keyboard shortcuts

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