standard

package
v0.0.0-...-7428086 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Void_name = map[Void]string{
		Void_Unused: "Unused",
	}

	Void_value = map[string]Void{
		"Unused": Void_Unused,
	}

	// Deprecated: Use Void_name instead.
	VoidToName = Void_name

	// Deprecated: Use Void_value instead.
	VoidToValue = Void_value

	// Deprecated: Use Void_name instead (e.g. `for name, _ := range Void_name {}`).
	VoidNames = []string{
		"Unused",
	}

	// Deprecated: Use Void_value instead (e.g. `for value, _ := range Void_value {}`).
	VoidValues = []Void{
		0,
	}
)

Enum value maps for Void

View Source
var (
	StandardProtocol_name = map[StandardProtocol]string{
		StandardProtocol_Custom:     "Custom",
		StandardProtocol_Binary:     "Binary",
		StandardProtocol_Compact:    "Compact",
		StandardProtocol_JSON:       "Json",
		StandardProtocol_SimpleJSON: "SimpleJson",
	}

	StandardProtocol_value = map[string]StandardProtocol{
		"Custom":     StandardProtocol_Custom,
		"Binary":     StandardProtocol_Binary,
		"Compact":    StandardProtocol_Compact,
		"Json":       StandardProtocol_JSON,
		"SimpleJson": StandardProtocol_SimpleJSON,
	}

	// Deprecated: Use StandardProtocol_name instead.
	StandardProtocolToName = StandardProtocol_name

	// Deprecated: Use StandardProtocol_value instead.
	StandardProtocolToValue = StandardProtocol_value

	// Deprecated: Use StandardProtocol_name instead (e.g. `for name, _ := range StandardProtocol_name {}`).
	StandardProtocolNames = []string{
		"Custom",
		"Binary",
		"Compact",
		"Json",
		"SimpleJson",
	}

	// Deprecated: Use StandardProtocol_value instead (e.g. `for value, _ := range StandardProtocol_value {}`).
	StandardProtocolValues = []StandardProtocol{
		0,
		1,
		2,
		3,
		4,
	}
)

Enum value maps for StandardProtocol

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type ByteBuffer

type ByteBuffer = []byte

type ByteString

type ByteString = []byte

type StandardProtocol

type StandardProtocol int32
const (
	StandardProtocol_Custom     StandardProtocol = 0
	StandardProtocol_Binary     StandardProtocol = 1
	StandardProtocol_Compact    StandardProtocol = 2
	StandardProtocol_JSON       StandardProtocol = 3
	StandardProtocol_SimpleJSON StandardProtocol = 4
)

func StandardProtocolFromString deprecated

func StandardProtocolFromString(s string) (StandardProtocol, error)

Deprecated: Use StandardProtocol_value instead (e.g. `x, ok := StandardProtocol_value["name"]`).

func StandardProtocolPtr deprecated

func StandardProtocolPtr(v StandardProtocol) *StandardProtocol

Deprecated: Use StandardProtocol.Ptr() instead.

func (StandardProtocol) Ptr

func (StandardProtocol) String

func (x StandardProtocol) String() string

type TypeName

type TypeName struct {
	BoolType      *Void    `thrift:"boolType,1" json:"boolType" db:"boolType"`
	ByteType      *Void    `thrift:"byteType,2" json:"byteType" db:"byteType"`
	I16Type       *Void    `thrift:"i16Type,3" json:"i16Type" db:"i16Type"`
	I32Type       *Void    `thrift:"i32Type,4" json:"i32Type" db:"i32Type"`
	I64Type       *Void    `thrift:"i64Type,5" json:"i64Type" db:"i64Type"`
	FloatType     *Void    `thrift:"floatType,6" json:"floatType" db:"floatType"`
	DoubleType    *Void    `thrift:"doubleType,7" json:"doubleType" db:"doubleType"`
	StringType    *Void    `thrift:"stringType,8" json:"stringType" db:"stringType"`
	BinaryType    *Void    `thrift:"binaryType,9" json:"binaryType" db:"binaryType"`
	EnumType      *TypeURI `thrift:"enumType,10" json:"enumType" db:"enumType"`
	TypedefType   *TypeURI `thrift:"typedefType,17" json:"typedefType" db:"typedefType"`
	StructType    *TypeURI `thrift:"structType,11" json:"structType" db:"structType"`
	UnionType     *TypeURI `thrift:"unionType,12" json:"unionType" db:"unionType"`
	ExceptionType *TypeURI `thrift:"exceptionType,13" json:"exceptionType" db:"exceptionType"`
	ListType      *Void    `thrift:"listType,14" json:"listType" db:"listType"`
	SetType       *Void    `thrift:"setType,15" json:"setType" db:"setType"`
	MapType       *Void    `thrift:"mapType,16" json:"mapType" db:"mapType"`
}

func NewTypeName

func NewTypeName() *TypeName

func (*TypeName) GetBinaryType

func (x *TypeName) GetBinaryType() *Void

func (*TypeName) GetBoolType

func (x *TypeName) GetBoolType() *Void

func (*TypeName) GetByteType

func (x *TypeName) GetByteType() *Void

func (*TypeName) GetDoubleType

func (x *TypeName) GetDoubleType() *Void

func (*TypeName) GetEnumType

func (x *TypeName) GetEnumType() *TypeURI

func (*TypeName) GetExceptionType

func (x *TypeName) GetExceptionType() *TypeURI

func (*TypeName) GetFloatType

func (x *TypeName) GetFloatType() *Void

func (*TypeName) GetI16Type

func (x *TypeName) GetI16Type() *Void

func (*TypeName) GetI32Type

func (x *TypeName) GetI32Type() *Void

func (*TypeName) GetI64Type

func (x *TypeName) GetI64Type() *Void

func (*TypeName) GetListType

func (x *TypeName) GetListType() *Void

func (*TypeName) GetMapType

func (x *TypeName) GetMapType() *Void

func (*TypeName) GetSetType

func (x *TypeName) GetSetType() *Void

func (*TypeName) GetStringType

func (x *TypeName) GetStringType() *Void

func (*TypeName) GetStructType

func (x *TypeName) GetStructType() *TypeURI

func (*TypeName) GetTypedefType

func (x *TypeName) GetTypedefType() *TypeURI

func (*TypeName) GetUnionType

func (x *TypeName) GetUnionType() *TypeURI

func (*TypeName) IsSetBinaryType

func (x *TypeName) IsSetBinaryType() bool

func (*TypeName) IsSetBoolType

func (x *TypeName) IsSetBoolType() bool

func (*TypeName) IsSetByteType

func (x *TypeName) IsSetByteType() bool

func (*TypeName) IsSetDoubleType

func (x *TypeName) IsSetDoubleType() bool

func (*TypeName) IsSetEnumType

func (x *TypeName) IsSetEnumType() bool

func (*TypeName) IsSetExceptionType

func (x *TypeName) IsSetExceptionType() bool

func (*TypeName) IsSetFloatType

func (x *TypeName) IsSetFloatType() bool

func (*TypeName) IsSetI16Type

func (x *TypeName) IsSetI16Type() bool

func (*TypeName) IsSetI32Type

func (x *TypeName) IsSetI32Type() bool

func (*TypeName) IsSetI64Type

func (x *TypeName) IsSetI64Type() bool

func (*TypeName) IsSetListType

func (x *TypeName) IsSetListType() bool

func (*TypeName) IsSetMapType

func (x *TypeName) IsSetMapType() bool

func (*TypeName) IsSetSetType

func (x *TypeName) IsSetSetType() bool

func (*TypeName) IsSetStringType

func (x *TypeName) IsSetStringType() bool

func (*TypeName) IsSetStructType

func (x *TypeName) IsSetStructType() bool

func (*TypeName) IsSetTypedefType

func (x *TypeName) IsSetTypedefType() bool

func (*TypeName) IsSetUnionType

func (x *TypeName) IsSetUnionType() bool

func (*TypeName) Read

func (x *TypeName) Read(p thrift.Protocol) error

func (*TypeName) SetBinaryType

func (x *TypeName) SetBinaryType(value Void) *TypeName

func (*TypeName) SetBoolType

func (x *TypeName) SetBoolType(value Void) *TypeName

func (*TypeName) SetByteType

func (x *TypeName) SetByteType(value Void) *TypeName

func (*TypeName) SetDoubleType

func (x *TypeName) SetDoubleType(value Void) *TypeName

func (*TypeName) SetEnumType

func (x *TypeName) SetEnumType(value TypeURI) *TypeName

func (*TypeName) SetExceptionType

func (x *TypeName) SetExceptionType(value TypeURI) *TypeName

func (*TypeName) SetFloatType

func (x *TypeName) SetFloatType(value Void) *TypeName

func (*TypeName) SetI16Type

func (x *TypeName) SetI16Type(value Void) *TypeName

func (*TypeName) SetI32Type

func (x *TypeName) SetI32Type(value Void) *TypeName

func (*TypeName) SetI64Type

func (x *TypeName) SetI64Type(value Void) *TypeName

func (*TypeName) SetListType

func (x *TypeName) SetListType(value Void) *TypeName

func (*TypeName) SetMapType

func (x *TypeName) SetMapType(value Void) *TypeName

func (*TypeName) SetSetType

func (x *TypeName) SetSetType(value Void) *TypeName

func (*TypeName) SetStringType

func (x *TypeName) SetStringType(value Void) *TypeName

func (*TypeName) SetStructType

func (x *TypeName) SetStructType(value TypeURI) *TypeName

func (*TypeName) SetTypedefType

func (x *TypeName) SetTypedefType(value TypeURI) *TypeName

func (*TypeName) SetUnionType

func (x *TypeName) SetUnionType(value TypeURI) *TypeName

func (*TypeName) Write

func (x *TypeName) Write(p thrift.Protocol) error

type TypeURI

type TypeURI struct {
	URI                   *URI       `thrift:"uri,1" json:"uri" db:"uri"`
	TypeHashPrefixSha2256 ByteString `thrift:"typeHashPrefixSha2_256,2" json:"typeHashPrefixSha2_256" db:"typeHashPrefixSha2_256"`
}

func NewTypeURI

func NewTypeURI() *TypeURI

func (*TypeURI) GetTypeHashPrefixSha2256

func (x *TypeURI) GetTypeHashPrefixSha2256() ByteString

func (*TypeURI) GetURI

func (x *TypeURI) GetURI() *URI

func (*TypeURI) IsSetTypeHashPrefixSha2256

func (x *TypeURI) IsSetTypeHashPrefixSha2256() bool

func (*TypeURI) IsSetURI

func (x *TypeURI) IsSetURI() bool

func (*TypeURI) Read

func (x *TypeURI) Read(p thrift.Protocol) error

func (*TypeURI) SetTypeHashPrefixSha2256

func (x *TypeURI) SetTypeHashPrefixSha2256(value ByteString) *TypeURI

func (*TypeURI) SetURI

func (x *TypeURI) SetURI(value URI) *TypeURI

func (*TypeURI) Write

func (x *TypeURI) Write(p thrift.Protocol) error

type URI

type URI = string

type Void

type Void int32
const (
	Void_Unused Void = 0
)

func VoidFromString deprecated

func VoidFromString(s string) (Void, error)

Deprecated: Use Void_value instead (e.g. `x, ok := Void_value["name"]`).

func VoidPtr deprecated

func VoidPtr(v Void) *Void

Deprecated: Use Void.Ptr() instead.

func (Void) Ptr

func (x Void) Ptr() *Void

func (Void) String

func (x Void) String() string

Jump to

Keyboard shortcuts

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