kvtest

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_test_model_proto protoreflect.FileDescriptor

Functions

func TestDriver

func TestDriver(t *testing.T, name, dsn string)

Types

type MakeStore added in v0.65.0

type MakeStore func(t *testing.T, ctx context.Context) kv.Store

func MakeStoreByName added in v0.65.0

func MakeStoreByName(name, dsn string) MakeStore

type TestModel added in v0.65.0

type TestModel struct {
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AnotherString string                 `protobuf:"bytes,2,opt,name=another_string,json=anotherString,proto3" json:"another_string,omitempty"`
	ADouble       float64                `protobuf:"fixed64,3,opt,name=a_double,json=aDouble,proto3" json:"a_double,omitempty"`
	TestTime      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"`
	TestMap       map[string]int32       `` /* 171-byte string literal not displayed */
	TestList      []bool                 `protobuf:"varint,6,rep,packed,name=test_list,json=testList,proto3" json:"test_list,omitempty"`
	// contains filtered or unexported fields
}

func (*TestModel) Descriptor deprecated added in v0.65.0

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

Deprecated: Use TestModel.ProtoReflect.Descriptor instead.

func (*TestModel) GetADouble added in v0.65.0

func (x *TestModel) GetADouble() float64

func (*TestModel) GetAnotherString added in v0.65.0

func (x *TestModel) GetAnotherString() string

func (*TestModel) GetName added in v0.65.0

func (x *TestModel) GetName() string

func (*TestModel) GetTestList added in v0.65.0

func (x *TestModel) GetTestList() []bool

func (*TestModel) GetTestMap added in v0.65.0

func (x *TestModel) GetTestMap() map[string]int32

func (*TestModel) GetTestTime added in v0.65.0

func (x *TestModel) GetTestTime() *timestamppb.Timestamp

func (*TestModel) ProtoMessage added in v0.65.0

func (*TestModel) ProtoMessage()

func (*TestModel) ProtoReflect added in v0.65.0

func (x *TestModel) ProtoReflect() protoreflect.Message

func (*TestModel) Reset added in v0.65.0

func (x *TestModel) Reset()

func (*TestModel) String added in v0.65.0

func (x *TestModel) String() string

Jump to

Keyboard shortcuts

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