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 ¶
- type NullString
- func (*NullString) Descriptor() ([]byte, []int)
- func (m *NullString) GetIsNotNull() bool
- func (m *NullString) GetText() string
- func (ns *NullString) ImplementsGraphQLType(name string) bool
- func (ns *NullString) IsNull() bool
- func (ns *NullString) MarshalJSON() ([]byte, error)
- func (*NullString) ProtoMessage()
- func (m *NullString) Reset()
- func (ns *NullString) Scan(value interface{}) error
- func (ns *NullString) Set(value string)
- func (ns *NullString) SetNull()
- func (m *NullString) String() string
- func (ns *NullString) UnmarshalGraphQL(input interface{}) error
- func (ns *NullString) UnmarshalJSON(input []byte) error
- func (ns NullString) Value() (driver.Value, error)
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