little_of_everything

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package little_of_everything is a generated protocol buffer package.

It is generated from these files:

tests/sql/little_of_everything/little_of_everything.proto

It has these top-level messages:

ExampleTable1
ExternalTypeTestMessage
CountRows

This file is generated by protoc-gen-persist Source File: tests/sql/little_of_everything/little_of_everything.proto DO NOT EDIT !

Index

Constants

This section is empty.

Variables

View Source
var ExampleTable1_InnerEnum_name = map[int32]string{
	0: "OP_0",
	1: "OP_1",
}
View Source
var ExampleTable1_InnerEnum_value = map[string]int32{
	"OP_0": 0,
	"OP_1": 1,
}
View Source
var MappedEnum_name = map[int32]string{
	0: "OPT_0",
	1: "OPT_1",
}
View Source
var MappedEnum_value = map[string]int32{
	"OPT_0": 0,
	"OPT_1": 1,
}
View Source
var MyEnum_name = map[int32]string{
	0: "OPTION_0",
	1: "OPTION_1",
}
View Source
var MyEnum_value = map[string]int32{
	"OPTION_0": 0,
	"OPTION_1": 1,
}

Functions

func ExampleTable1ToTestservice1PersistType

func ExampleTable1ToTestservice1PersistType(req *ExampleTable1) (*persist_lib.ExampleTable1ForTestservice1, error)

func IterTestservice1CountRowsProto

func IterTestservice1CountRowsProto(iter *persist_lib.Result, next func(i *CountRows) error) error

func IterTestservice1ExampleTable1Proto

func IterTestservice1ExampleTable1Proto(iter *persist_lib.Result, next func(i *ExampleTable1) error) error

func RegisterNotEnabledServiceServer

func RegisterNotEnabledServiceServer(s *grpc.Server, srv NotEnabledServiceServer)

func RegisterTestservice1Server

func RegisterTestservice1Server(s *grpc.Server, srv Testservice1Server)

func TestToTestservice1PersistType

func TestToTestservice1PersistType(req *test.Test) (*persist_lib.Test_TestForTestservice1, error)

Types

type CountRows

type CountRows struct {
	Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}

func CountRowsFromTestservice1DatabaseRow

func CountRowsFromTestservice1DatabaseRow(row persist_lib.Scanable) (*CountRows, error)

func (*CountRows) Descriptor

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

func (*CountRows) GetCount

func (m *CountRows) GetCount() int64

func (*CountRows) ProtoMessage

func (*CountRows) ProtoMessage()

func (*CountRows) Reset

func (m *CountRows) Reset()

func (*CountRows) String

func (m *CountRows) String() string

type ExampleTable1

type ExampleTable1 struct {
	TableId      int32                       `protobuf:"varint,1,opt,name=table_id,json=tableId" json:"table_id,omitempty"`
	Key          string                      `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Value        string                      `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	InnerMessage *ExampleTable1_InnerMessage `protobuf:"bytes,4,opt,name=inner_message,json=innerMessage" json:"inner_message,omitempty"`
	InnerEnum    ExampleTable1_InnerEnum     `protobuf:"varint,5,opt,name=inner_enum,json=innerEnum,enum=tests.ExampleTable1_InnerEnum" json:"inner_enum,omitempty"`
	StringArray  []string                    `protobuf:"bytes,6,rep,name=string_array,json=stringArray" json:"string_array,omitempty"`
	BytesField   []byte                      `protobuf:"bytes,7,opt,name=bytes_field,json=bytesField,proto3" json:"bytes_field,omitempty"`
	StartTime    *google_protobuf1.Timestamp `protobuf:"bytes,10,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	TestField    *tests_test.Test            `protobuf:"bytes,100,opt,name=test_field,json=testField" json:"test_field,omitempty"`
	// Types that are valid to be assigned to SkipOneOf:
	//	*ExampleTable1_TestId
	//	*ExampleTable1_TestValue
	//	*ExampleTable1_TestOutMessage
	SkipOneOf  isExampleTable1_SkipOneOf `protobuf_oneof:"skip_one_of"`
	Myyenum    MyEnum                    `protobuf:"varint,101,opt,name=myyenum,enum=tests.MyEnum" json:"myyenum,omitempty"`
	Testsenum  tests_test.TestEnum       `protobuf:"varint,102,opt,name=testsenum,enum=tests.test.TestEnum" json:"testsenum,omitempty"`
	Mappedenum MappedEnum                `protobuf:"varint,103,opt,name=mappedenum,enum=tests.MappedEnum" json:"mappedenum,omitempty"`
}

func ExampleTable1FromTestservice1DatabaseRow

func ExampleTable1FromTestservice1DatabaseRow(row persist_lib.Scanable) (*ExampleTable1, error)

func (*ExampleTable1) Descriptor

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

func (*ExampleTable1) GetBytesField

func (m *ExampleTable1) GetBytesField() []byte

func (*ExampleTable1) GetInnerEnum

func (m *ExampleTable1) GetInnerEnum() ExampleTable1_InnerEnum

func (*ExampleTable1) GetInnerMessage

func (m *ExampleTable1) GetInnerMessage() *ExampleTable1_InnerMessage

func (*ExampleTable1) GetKey

func (m *ExampleTable1) GetKey() string

func (*ExampleTable1) GetMappedenum

func (m *ExampleTable1) GetMappedenum() MappedEnum

func (*ExampleTable1) GetMyyenum

func (m *ExampleTable1) GetMyyenum() MyEnum

func (*ExampleTable1) GetSkipOneOf

func (m *ExampleTable1) GetSkipOneOf() isExampleTable1_SkipOneOf

func (*ExampleTable1) GetStartTime

func (m *ExampleTable1) GetStartTime() *google_protobuf1.Timestamp

func (*ExampleTable1) GetStringArray

func (m *ExampleTable1) GetStringArray() []string

func (*ExampleTable1) GetTableId

func (m *ExampleTable1) GetTableId() int32

func (*ExampleTable1) GetTestField

func (m *ExampleTable1) GetTestField() *tests_test.Test

func (*ExampleTable1) GetTestId

func (m *ExampleTable1) GetTestId() int32

func (*ExampleTable1) GetTestOutMessage

func (m *ExampleTable1) GetTestOutMessage() *tests_test.Test

func (*ExampleTable1) GetTestValue

func (m *ExampleTable1) GetTestValue() string

func (*ExampleTable1) GetTestsenum

func (m *ExampleTable1) GetTestsenum() tests_test.TestEnum

func (*ExampleTable1) GetValue

func (m *ExampleTable1) GetValue() string

func (*ExampleTable1) ProtoMessage

func (*ExampleTable1) ProtoMessage()

func (*ExampleTable1) Reset

func (m *ExampleTable1) Reset()

func (*ExampleTable1) String

func (m *ExampleTable1) String() string

func (*ExampleTable1) XXX_OneofFuncs

func (*ExampleTable1) 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 ExampleTable1_InnerEnum

type ExampleTable1_InnerEnum int32
const (
	ExampleTable1_OP_0 ExampleTable1_InnerEnum = 0
	ExampleTable1_OP_1 ExampleTable1_InnerEnum = 1
)

func (ExampleTable1_InnerEnum) EnumDescriptor

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

func (ExampleTable1_InnerEnum) String

func (x ExampleTable1_InnerEnum) String() string

type ExampleTable1_InnerMessage

type ExampleTable1_InnerMessage struct {
	Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}

func (*ExampleTable1_InnerMessage) Descriptor

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

func (*ExampleTable1_InnerMessage) GetId

func (m *ExampleTable1_InnerMessage) GetId() int32

func (*ExampleTable1_InnerMessage) ProtoMessage

func (*ExampleTable1_InnerMessage) ProtoMessage()

func (*ExampleTable1_InnerMessage) Reset

func (m *ExampleTable1_InnerMessage) Reset()

func (*ExampleTable1_InnerMessage) String

func (m *ExampleTable1_InnerMessage) String() string

type ExampleTable1_TestId

type ExampleTable1_TestId struct {
	TestId int32 `protobuf:"varint,1001,opt,name=test_id,json=testId,oneof"`
}

type ExampleTable1_TestOutMessage

type ExampleTable1_TestOutMessage struct {
	TestOutMessage *tests_test.Test `protobuf:"bytes,1003,opt,name=test_out_message,json=testOutMessage,oneof"`
}

type ExampleTable1_TestValue

type ExampleTable1_TestValue struct {
	TestValue string `protobuf:"bytes,1002,opt,name=test_value,json=testValue,oneof"`
}

type ExternalTypeTestMessage

type ExternalTypeTestMessage struct {
	Time *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"`
}

func (*ExternalTypeTestMessage) Descriptor

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

func (*ExternalTypeTestMessage) GetTime

func (*ExternalTypeTestMessage) ProtoMessage

func (*ExternalTypeTestMessage) ProtoMessage()

func (*ExternalTypeTestMessage) Reset

func (m *ExternalTypeTestMessage) Reset()

func (*ExternalTypeTestMessage) String

func (m *ExternalTypeTestMessage) String() string

type MappedEnum

type MappedEnum int32
const (
	MappedEnum_OPT_0 MappedEnum = 0
	MappedEnum_OPT_1 MappedEnum = 1
)

func (MappedEnum) EnumDescriptor

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

func (MappedEnum) String

func (x MappedEnum) String() string

type MyEnum

type MyEnum int32
const (
	MyEnum_OPTION_0 MyEnum = 0
	MyEnum_OPTION_1 MyEnum = 1
)

func (MyEnum) EnumDescriptor

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

func (MyEnum) String

func (x MyEnum) String() string

type MyMappedEnum

type MyMappedEnum struct {
	Status int32
}

func (*MyMappedEnum) Scan

func (t *MyMappedEnum) Scan(src interface{}) error

func (MyMappedEnum) ToProto

func (t MyMappedEnum) ToProto() MappedEnum

func (MyMappedEnum) ToSql

func (t MyMappedEnum) ToSql(src MappedEnum) *MyMappedEnum

func (*MyMappedEnum) Value

func (t *MyMappedEnum) Value() (driver.Value, error)

type NotEnabledServiceClient

type NotEnabledServiceClient interface {
}

func NewNotEnabledServiceClient

func NewNotEnabledServiceClient(cc *grpc.ClientConn) NotEnabledServiceClient

type NotEnabledServiceServer

type NotEnabledServiceServer interface {
}

type RestOfTestservice1Handlers

type RestOfTestservice1Handlers interface {
}

type Testservice1Client

type Testservice1Client interface {
	UnaryExample1(ctx context.Context, in *ExampleTable1, opts ...grpc.CallOption) (*ExampleTable1, error)
	UnaryExample2(ctx context.Context, in *tests_test.Test, opts ...grpc.CallOption) (*ExampleTable1, error)
	ServerStreamSelect(ctx context.Context, in *ExampleTable1, opts ...grpc.CallOption) (Testservice1_ServerStreamSelectClient, error)
	ClientStreamingExample(ctx context.Context, opts ...grpc.CallOption) (Testservice1_ClientStreamingExampleClient, error)
}

func NewTestservice1Client

func NewTestservice1Client(cc *grpc.ClientConn) Testservice1Client

type Testservice1Hooks

type Testservice1Hooks interface {
}

type Testservice1Impl

type Testservice1Impl struct {
	PERSIST   *persist_lib.Testservice1MethodReceiver
	FORWARDED RestOfTestservice1Handlers
	HOOKS     Testservice1Hooks
}

func (*Testservice1Impl) ClientStreamingExample

func (s *Testservice1Impl) ClientStreamingExample(stream Testservice1_ClientStreamingExampleServer) error

func (*Testservice1Impl) ServerStreamSelect

func (s *Testservice1Impl) ServerStreamSelect(req *ExampleTable1, stream Testservice1_ServerStreamSelectServer) error

func (*Testservice1Impl) UnaryExample1

func (s *Testservice1Impl) UnaryExample1(ctx context.Context, req *ExampleTable1) (*ExampleTable1, error)

func (*Testservice1Impl) UnaryExample2

func (s *Testservice1Impl) UnaryExample2(ctx context.Context, req *test.Test) (*ExampleTable1, error)

type Testservice1ImplBuilder

type Testservice1ImplBuilder struct {
	// contains filtered or unexported fields
}

func NewTestservice1Builder

func NewTestservice1Builder() *Testservice1ImplBuilder

func (*Testservice1ImplBuilder) Build

func (*Testservice1ImplBuilder) MustBuild

func (b *Testservice1ImplBuilder) MustBuild() *Testservice1Impl

func (*Testservice1ImplBuilder) WithDefaultQueryHandlers

func (b *Testservice1ImplBuilder) WithDefaultQueryHandlers() *Testservice1ImplBuilder

func (*Testservice1ImplBuilder) WithHooks

func (*Testservice1ImplBuilder) WithNewSqlDb

func (b *Testservice1ImplBuilder) WithNewSqlDb(driverName, dataSourceName string) *Testservice1ImplBuilder

func (*Testservice1ImplBuilder) WithNilAsDefaultQueryHandlers

func (*Testservice1ImplBuilder) WithPersistQueryHandlers

func (*Testservice1ImplBuilder) WithRestOfGrpcHandlers

func (*Testservice1ImplBuilder) WithSqlClient

func (b *Testservice1ImplBuilder) WithSqlClient(c *sql.DB) *Testservice1ImplBuilder

type Testservice1Server

type Testservice1Server interface {
	UnaryExample1(context.Context, *ExampleTable1) (*ExampleTable1, error)
	UnaryExample2(context.Context, *tests_test.Test) (*ExampleTable1, error)
	ServerStreamSelect(*ExampleTable1, Testservice1_ServerStreamSelectServer) error
	ClientStreamingExample(Testservice1_ClientStreamingExampleServer) error
}

type Testservice1_ClientStreamingExampleClient

type Testservice1_ClientStreamingExampleClient interface {
	Send(*ExampleTable1) error
	CloseAndRecv() (*CountRows, error)
	grpc.ClientStream
}

type Testservice1_ClientStreamingExampleServer

type Testservice1_ClientStreamingExampleServer interface {
	SendAndClose(*CountRows) error
	Recv() (*ExampleTable1, error)
	grpc.ServerStream
}

type Testservice1_ServerStreamSelectClient

type Testservice1_ServerStreamSelectClient interface {
	Recv() (*ExampleTable1, error)
	grpc.ClientStream
}

type Testservice1_ServerStreamSelectServer

type Testservice1_ServerStreamSelectServer interface {
	Send(*ExampleTable1) error
	grpc.ServerStream
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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