literal

package
v2.0.0-...-7724a3b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package literal contains a selection of frequently used literals with GraphQL APIs

Index

Constants

View Source
const (
	COLON_BYTE  = byte(':')
	COMMA_BYTE  = byte(',')
	LBRACK_BYTE = byte('[')
	RBRACK_BYTE = byte(']')
	LBRACE_BYTE = byte('{')
	RBRACE_BYTE = byte('}')
	SUB_BYTE    = byte('-')
)
View Source
const (
	DOUBLE_LBRACE_STR = "{{"
	DOUBLE_RBRACE_STR = "}}"
)

Variables

View Source
var (
	COLON          = []byte{COLON_BYTE}
	BANG           = []byte("!")
	LINETERMINATOR = []byte("\n")
	TAB            = []byte("	")
	SPACE          = []byte(" ")
	QUOTE          = []byte("\"")
	COMMA          = []byte{COMMA_BYTE}
	AT             = []byte("@")
	DOLLAR         = []byte("$")
	DOT            = []byte(".")
	SPREAD         = []byte("...")
	PIPE           = []byte("|")
	SLASH          = []byte("/")
	BACKSLASH      = []byte("\\")
	EQUALS         = []byte("=")
	SUB            = []byte{SUB_BYTE}
	AND            = []byte("&")

	LPAREN        = []byte("(")
	RPAREN        = []byte(")")
	LBRACK        = []byte{LBRACK_BYTE}
	RBRACK        = []byte{RBRACK_BYTE}
	LBRACE        = []byte{LBRACE_BYTE}
	DOUBLE_LBRACE = []byte("{{")
	DOUBLE_RBRACE = []byte("}}")
	RBRACE        = []byte{RBRACE_BYTE}

	GOBOOL    = []byte("bool")
	GOINT32   = []byte("int32")
	GOFLOAT32 = []byte("float32")
	GOSTRING  = []byte("string")
	GONIL     = []byte("nil")

	EOF                           = []byte("eof")
	ID                            = []byte("ID")
	Date                          = []byte("Date")
	BOOLEAN                       = []byte("Boolean")
	STRING                        = []byte("String")
	INT                           = []byte("Int")
	FLOAT                         = []byte("Float")
	TYPE                          = []byte("type")
	UNDERSCORETYPE                = []byte("__type")
	UNDERSCORESCHEMA              = []byte("__schema")
	TYPENAME                      = []byte("__typename")
	GRAPHQLTYPE                   = []byte("graphqlType")
	INTERFACE                     = []byte("interface")
	INPUT                         = []byte("input")
	WASMFILE                      = []byte("wasmFile")
	INCLUDE                       = []byte("include")
	IF                            = []byte("if")
	SKIP                          = []byte("skip")
	SCHEMA                        = []byte("schema")
	EXTEND                        = []byte("extend")
	SCALAR                        = []byte("scalar")
	UNION                         = []byte("union")
	ENUM                          = []byte("enum")
	DIRECTIVE                     = []byte("directive")
	REPEATABLE                    = []byte("repeatable")
	QUERY                         = []byte("query")
	MUTATION                      = []byte("mutation")
	SUBSCRIPTION                  = []byte("subscription")
	IMPLEMENTS                    = []byte("implements")
	ON                            = []byte("on")
	FRAGMENT                      = []byte("fragment")
	NULL                          = []byte("null")
	OBJECT                        = []byte("object")
	DATA                          = []byte("data")
	URL                           = []byte("url")
	CONFIG_FILE_PATH              = []byte("configFilePath")
	CONFIG_STRING                 = []byte("configString")
	DELAY_SECONDS                 = []byte("delaySeconds")
	PIPELINE_CONFIG               = []byte("pipelineConfig")
	PIPELINE_CONFIG_STRING        = []byte("pipelineConfigString")
	PIPELINE_CONFIG_FILE          = []byte("pipelineConfigFile")
	TRANSFORMATION                = []byte("transformation")
	INPUT_JSON                    = []byte("inputJSON")
	DEFAULT_TYPENAME              = []byte("defaultTypeName")
	STATUS_CODE_TYPENAME_MAPPINGS = []byte("statusCodeTypeNameMappings")
	DOT_OBJECT_DOT                = []byte(".object.")
	DOT_ARGUMENTS_DOT             = []byte(".arguments.")
	ADDR                          = []byte("addr")
	ADD                           = []byte("add")
	BROKERADDR                    = []byte("brokerAddr")
	CLIENTID                      = []byte("clientID")
	TOPIC                         = []byte("topic")
	HOST                          = []byte("host")
	PARAMS                        = []byte("params")
	FIELD                         = []byte("field")
	BODY                          = []byte("body")
	METHOD                        = []byte("method")
	MODE                          = []byte("mode")
	HEADERS                       = []byte("headers")
	KEY                           = []byte("key")
	OP                            = []byte("op")
	REPLACE                       = []byte("replace")
	INITIAL_BATCH_SIZE            = []byte("initialBatchSize")
	MILLISECONDS                  = []byte("milliSeconds")
	PATH                          = []byte("path")
	VALUE                         = []byte("value")
	HTTP_METHOD_GET               = []byte("GET")
	HTTP_METHOD_POST              = []byte("POST")
	HTTP_METHOD_PUT               = []byte("PUT")
	HTTP_METHOD_DELETE            = []byte("DELETE")
	HTTP_METHOD_PATCH             = []byte("PATCH")

	TRUE  = []byte("true")
	FALSE = []byte("false")

	LocationQuery              = []byte("QUERY")
	LocationMutation           = []byte("MUTATION")
	LocationSubscription       = []byte("SUBSCRIPTION")
	LocationField              = []byte("FIELD")
	LocationFragmentDefinition = []byte("FRAGMENT_DEFINITION")
	LocationFragmentSpread     = []byte("FRAGMENT_SPREAD")
	LocationInlineFragment     = []byte("INLINE_FRAGMENT")
	LocationVariableDefinition = []byte("VARIABLE_DEFINITION")

	LocationSchema               = []byte("SCHEMA")
	LocationScalar               = []byte("SCALAR")
	LocationObject               = []byte("OBJECT")
	LocationFieldDefinition      = []byte("FIELD_DEFINITION")
	LocationArgumentDefinition   = []byte("ARGUMENT_DEFINITION")
	LocationInterface            = []byte("INTERFACE")
	LocationUnion                = []byte("UNION")
	LocationEnum                 = []byte("ENUM")
	LocationEnumValue            = []byte("ENUM_VALUE")
	LocationInputObject          = []byte("INPUT_OBJECT")
	LocationInputFieldDefinition = []byte("INPUT_FIELD_DEFINITION")
)

Functions

This section is empty.

Types

type Literal

type Literal []byte

func (Literal) Equals

func (l Literal) Equals(another Literal) bool

Jump to

Keyboard shortcuts

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