thunderpb

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package thunderpb is a generated protocol buffer package.

It is generated from these files:

dependency.proto

It has these top-level messages:

Field
SQLFilter
ExpirationTime

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDependency = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDependency   = fmt.Errorf("proto: integer overflow")
)
View Source
var FieldKind_name = map[int32]string{
	0: "Unknown",
	1: "Null",
	2: "Bool",
	3: "Int",
	4: "Uint",
	5: "String",
	6: "Bytes",
	7: "Float64",
	8: "Time",
}
View Source
var FieldKind_value = map[string]int32{
	"Unknown": 0,
	"Null":    1,
	"Bool":    2,
	"Int":     3,
	"Uint":    4,
	"String":  5,
	"Bytes":   6,
	"Float64": 7,
	"Time":    8,
}

Functions

This section is empty.

Types

type ExpirationTime

type ExpirationTime struct {
	Time time.Time `protobuf:"bytes,1,opt,name=time,stdtime" json:"time"`
}

func (*ExpirationTime) Descriptor

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

func (*ExpirationTime) GetTime

func (m *ExpirationTime) GetTime() time.Time

func (*ExpirationTime) Marshal

func (m *ExpirationTime) Marshal() (dAtA []byte, err error)

func (*ExpirationTime) MarshalTo

func (m *ExpirationTime) MarshalTo(dAtA []byte) (int, error)

func (*ExpirationTime) ProtoMessage

func (*ExpirationTime) ProtoMessage()

func (*ExpirationTime) Reset

func (m *ExpirationTime) Reset()

func (*ExpirationTime) Size

func (m *ExpirationTime) Size() (n int)

func (*ExpirationTime) String

func (m *ExpirationTime) String() string

func (*ExpirationTime) Unmarshal

func (m *ExpirationTime) Unmarshal(dAtA []byte) error

type Field

type Field struct {
	Kind FieldKind `protobuf:"varint,1,opt,name=kind,proto3,enum=thunderpb.FieldKind" json:"kind,omitempty"`
	// Types that are valid to be assigned to Value:
	//	*Field_Bool
	//	*Field_Int
	//	*Field_Uint
	//	*Field_String_
	//	*Field_Bytes
	//	*Field_Float64
	//	*Field_Time
	Value isField_Value `protobuf_oneof:"value"`
}

func (*Field) Descriptor

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

func (*Field) GetBool

func (m *Field) GetBool() bool

func (*Field) GetBytes

func (m *Field) GetBytes() []byte

func (*Field) GetFloat64

func (m *Field) GetFloat64() float64

func (*Field) GetInt

func (m *Field) GetInt() int64

func (*Field) GetKind

func (m *Field) GetKind() FieldKind

func (*Field) GetString_

func (m *Field) GetString_() string

func (*Field) GetTime

func (m *Field) GetTime() *time.Time

func (*Field) GetUint

func (m *Field) GetUint() uint64

func (*Field) GetValue

func (m *Field) GetValue() isField_Value

func (*Field) Marshal

func (m *Field) Marshal() (dAtA []byte, err error)

func (*Field) MarshalTo

func (m *Field) MarshalTo(dAtA []byte) (int, error)

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) Size

func (m *Field) Size() (n int)

func (*Field) String

func (m *Field) String() string

func (*Field) Unmarshal

func (m *Field) Unmarshal(dAtA []byte) error

func (*Field) XXX_OneofFuncs

func (*Field) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type FieldKind

type FieldKind int32
const (
	FieldKind_Unknown FieldKind = 0
	FieldKind_Null    FieldKind = 1
	FieldKind_Bool    FieldKind = 2
	FieldKind_Int     FieldKind = 3
	FieldKind_Uint    FieldKind = 4
	FieldKind_String  FieldKind = 5
	FieldKind_Bytes   FieldKind = 6
	FieldKind_Float64 FieldKind = 7
	FieldKind_Time    FieldKind = 8
)

func (FieldKind) EnumDescriptor

func (FieldKind) EnumDescriptor() ([]byte, []int)

func (FieldKind) String

func (x FieldKind) String() string

type Field_Bool

type Field_Bool struct {
	Bool bool `protobuf:"varint,2,opt,name=bool,proto3,oneof"`
}

func (*Field_Bool) MarshalTo

func (m *Field_Bool) MarshalTo(dAtA []byte) (int, error)

func (*Field_Bool) Size

func (m *Field_Bool) Size() (n int)

type Field_Bytes

type Field_Bytes struct {
	Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3,oneof"`
}

func (*Field_Bytes) MarshalTo

func (m *Field_Bytes) MarshalTo(dAtA []byte) (int, error)

func (*Field_Bytes) Size

func (m *Field_Bytes) Size() (n int)

type Field_Float64

type Field_Float64 struct {
	Float64 float64 `protobuf:"fixed64,7,opt,name=float64,proto3,oneof"`
}

func (*Field_Float64) MarshalTo

func (m *Field_Float64) MarshalTo(dAtA []byte) (int, error)

func (*Field_Float64) Size

func (m *Field_Float64) Size() (n int)

type Field_Int

type Field_Int struct {
	Int int64 `protobuf:"zigzag64,3,opt,name=int,proto3,oneof"`
}

func (*Field_Int) MarshalTo

func (m *Field_Int) MarshalTo(dAtA []byte) (int, error)

func (*Field_Int) Size

func (m *Field_Int) Size() (n int)

type Field_String_

type Field_String_ struct {
	String_ string `protobuf:"bytes,5,opt,name=string,proto3,oneof"`
}

func (*Field_String_) MarshalTo

func (m *Field_String_) MarshalTo(dAtA []byte) (int, error)

func (*Field_String_) Size

func (m *Field_String_) Size() (n int)

type Field_Time

type Field_Time struct {
	Time *time.Time `protobuf:"bytes,8,opt,name=time,oneof,stdtime"`
}

func (*Field_Time) MarshalTo

func (m *Field_Time) MarshalTo(dAtA []byte) (int, error)

func (*Field_Time) Size

func (m *Field_Time) Size() (n int)

type Field_Uint

type Field_Uint struct {
	Uint uint64 `protobuf:"varint,4,opt,name=uint,proto3,oneof"`
}

func (*Field_Uint) MarshalTo

func (m *Field_Uint) MarshalTo(dAtA []byte) (int, error)

func (*Field_Uint) Size

func (m *Field_Uint) Size() (n int)

type SQLFilter

type SQLFilter struct {
	Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
	// Map of column name to field value.
	Fields map[string]*Field `` /* 139-byte string literal not displayed */
}

func (*SQLFilter) Descriptor

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

func (*SQLFilter) GetFields

func (m *SQLFilter) GetFields() map[string]*Field

func (*SQLFilter) GetTable

func (m *SQLFilter) GetTable() string

func (*SQLFilter) Marshal

func (m *SQLFilter) Marshal() (dAtA []byte, err error)

func (*SQLFilter) MarshalTo

func (m *SQLFilter) MarshalTo(dAtA []byte) (int, error)

func (*SQLFilter) ProtoMessage

func (*SQLFilter) ProtoMessage()

func (*SQLFilter) Reset

func (m *SQLFilter) Reset()

func (*SQLFilter) Size

func (m *SQLFilter) Size() (n int)

func (*SQLFilter) String

func (m *SQLFilter) String() string

func (*SQLFilter) Unmarshal

func (m *SQLFilter) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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