model

package
v0.0.0-...-0015e7d Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_model_proto protoreflect.FileDescriptor

Functions

func DoStringUserErr

func DoStringUserErr(x *User, err error) string

func DoStringUserSelectErr

func DoStringUserSelectErr(x *UserSelect, err error) string

func DoStringUsersErr

func DoStringUsersErr(x *Users, err error) string

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) DoMarshal

func (x *User) DoMarshal() ([]byte, error)

func (*User) GetActive

func (x *User) GetActive() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) GetUserid

func (x *User) GetUserid() int32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Users.ProtoReflect.Descriptor instead.

func (*Users) DoMarshal

func (x *Users) DoMarshal() ([]byte, error)

func (*Users) GetUsers

func (x *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) ProtoReflect

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

func (*Users) Reset

func (x *Users) Reset()

func (*Users) String

func (x *Users) String() string

Jump to

Keyboard shortcuts

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