model

package
v0.0.0-...-c92cbe1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tests_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MyTestModel

type MyTestModel struct {
	MyString           string                           `protobuf:"bytes,1,opt,name=myString,proto3" json:"myString,omitempty"`
	MyInt32            int32                            `protobuf:"varint,2,opt,name=myInt32,proto3" json:"myInt32,omitempty"`
	MyInt64            int64                            `protobuf:"varint,3,opt,name=myInt64,proto3" json:"myInt64,omitempty"`
	MyFloat32          float32                          `protobuf:"fixed32,4,opt,name=myFloat32,proto3" json:"myFloat32,omitempty"`
	MyFloat64          float64                          `protobuf:"fixed64,5,opt,name=myFloat64,proto3" json:"myFloat64,omitempty"`
	MySingle           *MyTestSubModelSingle            `protobuf:"bytes,6,opt,name=mySingle,proto3" json:"mySingle,omitempty"`
	MyStringSlice      []string                         `protobuf:"bytes,7,rep,name=myStringSlice,proto3" json:"myStringSlice,omitempty"`
	MyInt32Slice       []int32                          `protobuf:"varint,8,rep,packed,name=myInt32Slice,proto3" json:"myInt32Slice,omitempty"`
	MyModelSlice       []*MyTestSubModelSingle          `protobuf:"bytes,9,rep,name=myModelSlice,proto3" json:"myModelSlice,omitempty"`
	MyString2StringMap map[string]string                `` /* 178-byte string literal not displayed */
	MyInt32ToInt64Map  map[int32]int64                  `` /* 178-byte string literal not displayed */
	MyString2ModelMap  map[string]*MyTestSubModelSingle `` /* 176-byte string literal not displayed */
	MyBool             bool                             `protobuf:"varint,13,opt,name=myBool,proto3" json:"myBool,omitempty"`
	// contains filtered or unexported fields
}

func (*MyTestModel) Descriptor deprecated

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

Deprecated: Use MyTestModel.ProtoReflect.Descriptor instead.

func (*MyTestModel) GetMyBool

func (x *MyTestModel) GetMyBool() bool

func (*MyTestModel) GetMyFloat32

func (x *MyTestModel) GetMyFloat32() float32

func (*MyTestModel) GetMyFloat64

func (x *MyTestModel) GetMyFloat64() float64

func (*MyTestModel) GetMyInt32

func (x *MyTestModel) GetMyInt32() int32

func (*MyTestModel) GetMyInt32Slice

func (x *MyTestModel) GetMyInt32Slice() []int32

func (*MyTestModel) GetMyInt32ToInt64Map

func (x *MyTestModel) GetMyInt32ToInt64Map() map[int32]int64

func (*MyTestModel) GetMyInt64

func (x *MyTestModel) GetMyInt64() int64

func (*MyTestModel) GetMyModelSlice

func (x *MyTestModel) GetMyModelSlice() []*MyTestSubModelSingle

func (*MyTestModel) GetMySingle

func (x *MyTestModel) GetMySingle() *MyTestSubModelSingle

func (*MyTestModel) GetMyString

func (x *MyTestModel) GetMyString() string

func (*MyTestModel) GetMyString2ModelMap

func (x *MyTestModel) GetMyString2ModelMap() map[string]*MyTestSubModelSingle

func (*MyTestModel) GetMyString2StringMap

func (x *MyTestModel) GetMyString2StringMap() map[string]string

func (*MyTestModel) GetMyStringSlice

func (x *MyTestModel) GetMyStringSlice() []string

func (*MyTestModel) ProtoMessage

func (*MyTestModel) ProtoMessage()

func (*MyTestModel) ProtoReflect

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

func (*MyTestModel) Reset

func (x *MyTestModel) Reset()

func (*MyTestModel) String

func (x *MyTestModel) String() string

type MyTestModelHandler

type MyTestModelHandler struct {
	Passed   bool
	Expected string
}

func (*MyTestModelHandler) Delete

func (my *MyTestModelHandler) Delete(pb proto.Message, port common.Port) (proto.Message, error)

func (*MyTestModelHandler) EndPoint

func (my *MyTestModelHandler) EndPoint() string

func (*MyTestModelHandler) Get

func (*MyTestModelHandler) Patch

func (my *MyTestModelHandler) Patch(pb proto.Message, port common.Port) (proto.Message, error)

func (*MyTestModelHandler) Post

func (my *MyTestModelHandler) Post(pb proto.Message, port common.Port) (proto.Message, error)

func (*MyTestModelHandler) Put

type MyTestSubModelSingle

type MyTestSubModelSingle struct {
	MyString string `protobuf:"bytes,1,opt,name=myString,proto3" json:"myString,omitempty"`
	MyInt64  int64  `protobuf:"varint,2,opt,name=myInt64,proto3" json:"myInt64,omitempty"`
	// contains filtered or unexported fields
}

func (*MyTestSubModelSingle) Descriptor deprecated

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

Deprecated: Use MyTestSubModelSingle.ProtoReflect.Descriptor instead.

func (*MyTestSubModelSingle) GetMyInt64

func (x *MyTestSubModelSingle) GetMyInt64() int64

func (*MyTestSubModelSingle) GetMyString

func (x *MyTestSubModelSingle) GetMyString() string

func (*MyTestSubModelSingle) ProtoMessage

func (*MyTestSubModelSingle) ProtoMessage()

func (*MyTestSubModelSingle) ProtoReflect

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

func (*MyTestSubModelSingle) Reset

func (x *MyTestSubModelSingle) Reset()

func (*MyTestSubModelSingle) String

func (x *MyTestSubModelSingle) String() string

Jump to

Keyboard shortcuts

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