Documentation
¶
Index ¶
- Variables
- type GetUserRequest
- type GetUserRequest_builder
- type ListUsersResponse
- type ListUsersResponse_builder
- type User
- func (x *User) ClearHome()
- func (x *User) GetEmail() string
- func (x *User) GetHome() *User_Location
- func (x *User) GetName() string
- func (x *User) GetOpt() string
- func (x *User) GetPassword() string
- func (x *User) GetUsername() string
- func (x *User) HasHome() bool
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) SetEmail(v string)
- func (x *User) SetHome(v *User_Location)
- func (x *User) SetName(v string)
- func (x *User) SetOpt(v string)
- func (x *User) SetPassword(v string)
- func (x *User) SetUsername(v string)
- func (x *User) String() string
- type User_Location
- func (x *User_Location) GetLat() float64
- func (x *User_Location) GetLng() float64
- func (*User_Location) ProtoMessage()
- func (x *User_Location) ProtoReflect() protoreflect.Message
- func (x *User_Location) Reset()
- func (x *User_Location) SetLat(v float64)
- func (x *User_Location) SetLng(v float64)
- func (x *User_Location) String() string
- type User_Location_builder
- type User_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_examples_user_pb_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetUserRequest ¶
type GetUserRequest struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserRequest) GetUsername ¶
func (x *GetUserRequest) GetUsername() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) SetUsername ¶
func (x *GetUserRequest) SetUsername(v string)
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserRequest_builder ¶
type GetUserRequest_builder struct {
Username string
// contains filtered or unexported fields
}
func (GetUserRequest_builder) Build ¶
func (b0 GetUserRequest_builder) Build() *GetUserRequest
type ListUsersResponse ¶
type ListUsersResponse struct {
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) SetUsers ¶
func (x *ListUsersResponse) SetUsers(v []*User)
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type ListUsersResponse_builder ¶
type ListUsersResponse_builder struct {
Users []*User
// contains filtered or unexported fields
}
func (ListUsersResponse_builder) Build ¶
func (b0 ListUsersResponse_builder) Build() *ListUsersResponse
type User ¶
type User struct {
// User credentials
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // default redaction
// User information
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Home *User_Location `protobuf:"bytes,5,opt,name=home,proto3" json:"home,omitempty"`
Opt string `protobuf:"bytes,6,opt,name=opt,proto3" json:"opt,omitempty"`
// contains filtered or unexported fields
}
func (*User) GetHome ¶
func (x *User) GetHome() *User_Location
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) SetHome ¶
func (x *User) SetHome(v *User_Location)
type User_Location ¶
type User_Location struct {
Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
// contains filtered or unexported fields
}
func (*User_Location) GetLat ¶
func (x *User_Location) GetLat() float64
func (*User_Location) GetLng ¶
func (x *User_Location) GetLng() float64
func (*User_Location) ProtoMessage ¶
func (*User_Location) ProtoMessage()
func (*User_Location) ProtoReflect ¶
func (x *User_Location) ProtoReflect() protoreflect.Message
func (*User_Location) Reset ¶
func (x *User_Location) Reset()
func (*User_Location) SetLat ¶
func (x *User_Location) SetLat(v float64)
func (*User_Location) SetLng ¶
func (x *User_Location) SetLng(v float64)
func (*User_Location) String ¶
func (x *User_Location) String() string
type User_Location_builder ¶
type User_Location_builder struct {
Lat float64
Lng float64
// contains filtered or unexported fields
}
func (User_Location_builder) Build ¶
func (b0 User_Location_builder) Build() *User_Location
type User_builder ¶
type User_builder struct {
// User credentials
Username string
Password string
// User information
Email string
Name string
Home *User_Location
Opt string
// contains filtered or unexported fields
}
func (User_builder) Build ¶
func (b0 User_builder) Build() *User
Source Files
¶
- user.pb.go
Click to show internal directories.
Click to hide internal directories.