Documentation ¶
Index ¶
- Variables
- func DoStringUserErr(x *User, err error) string
- func DoStringUserSelectErr(x *UserSelect, err error) string
- func DoStringUsersErr(x *Users, err error) string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) DoMarshal() ([]byte, error)
- func (x *User) GetActive() bool
- func (x *User) GetName() string
- func (x *User) GetUserid() int32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserSelect
- func (*UserSelect) Descriptor() ([]byte, []int)deprecated
- func (x *UserSelect) DoMarshal() ([]byte, error)
- func (x *UserSelect) GetActive() string
- func (*UserSelect) ProtoMessage()
- func (x *UserSelect) ProtoReflect() protoreflect.Message
- func (x *UserSelect) Reset()
- func (x *UserSelect) String() string
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_model_proto protoreflect.FileDescriptor
Functions ¶
func DoStringUserErr ¶
func DoStringUserSelectErr ¶
func DoStringUserSelectErr(x *UserSelect, err error) string
func DoStringUsersErr ¶
Types ¶
type User ¶
type User struct { Userid int32 `protobuf:"varint,1,opt,name=userid,proto3" json:"userid,omitempty"` Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
User - USER structure: UserID int32, Active bool, Name string
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserSelect ¶
type UserSelect struct { // using string to simulate nil of a bool // active=false|true|” - to filter false or true or all // PLUS DEV MODE TESTS: active=dev-db-mockup|dev-db-truncate Active string `protobuf:"bytes,4,opt,name=active,proto3" json:"active,omitempty"` // contains filtered or unexported fields }
message UserSelect - overcoming false vs nil/empty of a boolean type variant PLUS DEV MODE TESTS: active=dev-db-mockup|dev-db-truncate
func (*UserSelect) Descriptor
deprecated
func (*UserSelect) Descriptor() ([]byte, []int)
Deprecated: Use UserSelect.ProtoReflect.Descriptor instead.
func (*UserSelect) DoMarshal ¶
func (x *UserSelect) DoMarshal() ([]byte, error)
func (*UserSelect) GetActive ¶
func (x *UserSelect) GetActive() string
func (*UserSelect) ProtoMessage ¶
func (*UserSelect) ProtoMessage()
func (*UserSelect) ProtoReflect ¶
func (x *UserSelect) ProtoReflect() protoreflect.Message
func (*UserSelect) Reset ¶
func (x *UserSelect) Reset()
func (*UserSelect) String ¶
func (x *UserSelect) String() string
type Users ¶
type Users struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
message Users - overcoming limitations of rest to perform stream
func (*Users) Descriptor
deprecated
func (*Users) ProtoMessage ¶
func (*Users) ProtoMessage()
func (*Users) ProtoReflect ¶
func (x *Users) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.