nullstring

package
v0.0.0-...-2865eeb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 6 Imported by: 5

Documentation

Overview

Package nullstring is a generated protocol buffer package.

It is generated from these files:

nullstring.proto

It has these top-level messages:

NullString

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullString

type NullString struct {
	// Represents the actual string
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	// is set to true if the string is null
	IsNotNull bool `protobuf:"varint,2,opt,name=is_not_null,json=isNotNull" json:"is_not_null,omitempty"`
}

NullString ...

func (*NullString) Descriptor

func (*NullString) Descriptor() ([]byte, []int)

func (*NullString) GetIsNotNull

func (m *NullString) GetIsNotNull() bool

func (*NullString) GetText

func (m *NullString) GetText() string

func (*NullString) ImplementsGraphQLType

func (ns *NullString) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType is required by the graphql custom scalar interface this defines the name used in the schema to declare a null time type

func (*NullString) IsNull

func (ns *NullString) IsNull() bool

IsNull will return if the current string is null

func (*NullString) MarshalJSON

func (ns *NullString) MarshalJSON() ([]byte, error)

MarshalJSON will return the content as json value, this is also called by graphql to generate the response

func (*NullString) ProtoMessage

func (*NullString) ProtoMessage()

func (*NullString) Reset

func (m *NullString) Reset()

func (*NullString) Scan

func (ns *NullString) Scan(value interface{}) error

Scan implements the Scanner interface of the database driver

func (*NullString) Set

func (ns *NullString) Set(value string)

Set will set the null string to the given value

func (*NullString) SetNull

func (ns *NullString) SetNull()

SetNull will set the nullstring to null

func (*NullString) String

func (m *NullString) String() string

func (*NullString) UnmarshalGraphQL

func (ns *NullString) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL is required by the graphql custom scalar interface this wraps the null string

func (*NullString) UnmarshalJSON

func (ns *NullString) UnmarshalJSON(input []byte) error

UnmarshalJSON is required to parse json input to string value

func (NullString) Value

func (ns NullString) Value() (driver.Value, error)

Value implements the db driver Valuer interface

Jump to

Keyboard shortcuts

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