nullint

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: 5 Imported by: 2

Documentation

Overview

Package nullint is a generated protocol buffer package.

It is generated from these files:

nullint.proto

It has these top-level messages:

NullInt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullInt

type NullInt struct {
	// Represents the actual Integer
	Int int64 `protobuf:"varint,1,opt,name=int" json:"int,omitempty"`
	// is set to true if the integer is null
	IsNotNull bool `protobuf:"varint,2,opt,name=is_not_null,json=isNotNull" json:"is_not_null,omitempty"`
}

NullInt ...

func (*NullInt) Descriptor

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

func (*NullInt) GetInt

func (m *NullInt) GetInt() int64

func (*NullInt) GetIsNotNull

func (m *NullInt) GetIsNotNull() bool

func (*NullInt) ImplementsGraphQLType

func (ni *NullInt) 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 (*NullInt) IsNull

func (ni *NullInt) IsNull() bool

IsNull will return if the current null int is null

func (*NullInt) ProtoMessage

func (*NullInt) ProtoMessage()

func (*NullInt) Reset

func (m *NullInt) Reset()

func (*NullInt) Scan

func (ni *NullInt) Scan(value interface{}) error

Scan implements the Scanner interface of the database driver

func (*NullInt) Set

func (ni *NullInt) Set(value int64)

Set will set the null string to the given value

func (*NullInt) SetNull

func (ni *NullInt) SetNull()

SetNull will set the null int to null

func (*NullInt) String

func (m *NullInt) String() string

func (*NullInt) UnmarshalGraphQL

func (ni *NullInt) UnmarshalGraphQL(input interface{}) error

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

func (NullInt) Value

func (ni NullInt) 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