benchmark

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

Benchmark

Simple benchmark tests, which serve more as end-to-end production-like integration tests rather than actual in-depth benchmarks.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_temporary_data_proto2_proto protoreflect.FileDescriptor

Functions

func NewProtoTmpData

func NewProtoTmpData(insertID string, name string, uuid int64, timestamp time.Time, truth bool, parameters map[string]string) interface{}

NewProtoTmpData create a Protobuf-based temporary data model, implented using the dataGenerator syntax.

func NewTmpData

func NewTmpData(insertID string, name string, uuid int64, timestamp time.Time, truth bool, parameters map[string]string) interface{}

NewTmpData create a ValueSaver/JsonMarshal-based temporary data model, implented using the dataGenerator syntax.

Types

type TemporaryDataParameterProto2 added in v0.5.1

type TemporaryDataParameterProto2 struct {
	Name  *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Value []byte  `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TemporaryDataParameterProto2) Descriptor deprecated added in v0.5.1

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

Deprecated: Use TemporaryDataParameterProto2.ProtoReflect.Descriptor instead.

func (*TemporaryDataParameterProto2) GetName added in v0.5.1

func (x *TemporaryDataParameterProto2) GetName() string

func (*TemporaryDataParameterProto2) GetValue added in v0.5.1

func (x *TemporaryDataParameterProto2) GetValue() []byte

func (*TemporaryDataParameterProto2) ProtoMessage added in v0.5.1

func (*TemporaryDataParameterProto2) ProtoMessage()

func (*TemporaryDataParameterProto2) ProtoReflect added in v0.5.1

func (*TemporaryDataParameterProto2) Reset added in v0.5.1

func (x *TemporaryDataParameterProto2) Reset()

func (*TemporaryDataParameterProto2) String added in v0.5.1

type TemporaryDataProto2 added in v0.5.1

type TemporaryDataProto2 struct {
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Uuid *int64  `protobuf:"varint,2,opt,name=uuid" json:"uuid,omitempty"`
	// NOTE: should be of type google.protobuf.Timestamp,
	// but these known types aren't supported yet, instead it needs to be
	// sent over the wire as microseconds epoch
	Timestamp  *int64                          `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
	Truth      *bool                           `protobuf:"varint,4,opt,name=truth" json:"truth,omitempty"`
	Parameters []*TemporaryDataParameterProto2 `protobuf:"bytes,5,rep,name=parameters" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*TemporaryDataProto2) Descriptor deprecated added in v0.5.1

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

Deprecated: Use TemporaryDataProto2.ProtoReflect.Descriptor instead.

func (*TemporaryDataProto2) GetName added in v0.5.1

func (x *TemporaryDataProto2) GetName() string

func (*TemporaryDataProto2) GetParameters added in v0.5.1

func (x *TemporaryDataProto2) GetParameters() []*TemporaryDataParameterProto2

func (*TemporaryDataProto2) GetTimestamp added in v0.5.1

func (x *TemporaryDataProto2) GetTimestamp() int64

func (*TemporaryDataProto2) GetTruth added in v0.5.1

func (x *TemporaryDataProto2) GetTruth() bool

func (*TemporaryDataProto2) GetUuid added in v0.5.1

func (x *TemporaryDataProto2) GetUuid() int64

func (*TemporaryDataProto2) ProtoMessage added in v0.5.1

func (*TemporaryDataProto2) ProtoMessage()

func (*TemporaryDataProto2) ProtoReflect added in v0.5.1

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

func (*TemporaryDataProto2) Reset added in v0.5.1

func (x *TemporaryDataProto2) Reset()

func (*TemporaryDataProto2) String added in v0.5.1

func (x *TemporaryDataProto2) String() string

Jump to

Keyboard shortcuts

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