Documentation ¶
Index ¶
- Variables
- func RegisterUserGsrvServer(s grpc.ServiceRegistrar, srv UserGsrvServer)
- type Auth
- func (*Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Auth) GetDeviceToken() string
- func (x *Auth) GetId() string
- func (x *Auth) GetPassword() string
- func (x *Auth) GetToken() string
- func (x *Auth) GetUsername() string
- func (*Auth) ProtoMessage()
- func (x *Auth) ProtoReflect() protoreflect.Message
- func (x *Auth) Reset()
- func (x *Auth) String() string
- type UnimplementedUserGsrvServer
- func (UnimplementedUserGsrvServer) AuthQuickSignin(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) AuthSignin(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) AuthSignup(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserAddRole(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserGet(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserGetRoles(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserProfileSave(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserRemoveRole(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserRoleSave(context.Context, *anypb.Any) (*anypb.Any, error)
- func (UnimplementedUserGsrvServer) UserSave(context.Context, *anypb.Any) (*anypb.Any, error)
- type UnsafeUserGsrvServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetProfiles() []*UserProfile
- func (x *User) GetRoles() []*v1.Role
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserGsrvClient
- type UserGsrvServer
- type UserProfile
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetId() string
- func (x *UserRole) GetRole() *v1.Role
- func (x *UserRole) GetUser() *User
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
Constants ¶
This section is empty.
Variables ¶
var File_user_v1_user_proto protoreflect.FileDescriptor
var UserGsrv_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserGsrv", HandlerType: (*UserGsrvServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserProfileSave", Handler: _UserGsrv_UserProfileSave_Handler, }, { MethodName: "AuthSignin", Handler: _UserGsrv_AuthSignin_Handler, }, { MethodName: "AuthQuickSignin", Handler: _UserGsrv_AuthQuickSignin_Handler, }, { MethodName: "AuthSignup", Handler: _UserGsrv_AuthSignup_Handler, }, { MethodName: "UserSave", Handler: _UserGsrv_UserSave_Handler, }, { MethodName: "UserAddRole", Handler: _UserGsrv_UserAddRole_Handler, }, { MethodName: "UserRemoveRole", Handler: _UserGsrv_UserRemoveRole_Handler, }, { MethodName: "UserGet", Handler: _UserGsrv_UserGet_Handler, }, { MethodName: "UserGetRoles", Handler: _UserGsrv_UserGetRoles_Handler, }, { MethodName: "UserRoleSave", Handler: _UserGsrv_UserRoleSave_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/v1/user.proto", }
UserGsrv_ServiceDesc is the grpc.ServiceDesc for UserGsrv service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserGsrvServer ¶
func RegisterUserGsrvServer(s grpc.ServiceRegistrar, srv UserGsrvServer)
Types ¶
type Auth ¶
type Auth struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Auth) Descriptor
deprecated
func (*Auth) GetDeviceToken ¶
func (*Auth) GetPassword ¶
func (*Auth) GetUsername ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
type UnimplementedUserGsrvServer ¶
type UnimplementedUserGsrvServer struct { }
UnimplementedUserGsrvServer must be embedded to have forward compatible implementations.
func (UnimplementedUserGsrvServer) AuthQuickSignin ¶
func (UnimplementedUserGsrvServer) AuthSignin ¶
func (UnimplementedUserGsrvServer) AuthSignup ¶
func (UnimplementedUserGsrvServer) UserAddRole ¶
func (UnimplementedUserGsrvServer) UserGetRoles ¶
func (UnimplementedUserGsrvServer) UserProfileSave ¶
func (UnimplementedUserGsrvServer) UserRemoveRole ¶
func (UnimplementedUserGsrvServer) UserRoleSave ¶
type UnsafeUserGsrvServer ¶
type UnsafeUserGsrvServer interface {
// contains filtered or unexported methods
}
UnsafeUserGsrvServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserGsrvServer will result in compilation errors.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Profiles []*UserProfile `protobuf:"bytes,4,rep,name=profiles,proto3" json:"profiles,omitempty"` Roles []*v1.Role `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetProfiles ¶
func (x *User) GetProfiles() []*UserProfile
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserGsrvClient ¶
type UserGsrvClient interface { UserProfileSave(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) AuthSignin(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) AuthQuickSignin(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) AuthSignup(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserSave(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserAddRole(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserRemoveRole(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserGet(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserGetRoles(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) UserRoleSave(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*anypb.Any, error) }
UserGsrvClient is the client API for UserGsrv service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserGsrvClient ¶
func NewUserGsrvClient(cc grpc.ClientConnInterface) UserGsrvClient
type UserGsrvServer ¶
type UserGsrvServer interface { UserProfileSave(context.Context, *anypb.Any) (*anypb.Any, error) AuthSignin(context.Context, *anypb.Any) (*anypb.Any, error) AuthQuickSignin(context.Context, *anypb.Any) (*anypb.Any, error) AuthSignup(context.Context, *anypb.Any) (*anypb.Any, error) UserSave(context.Context, *anypb.Any) (*anypb.Any, error) UserAddRole(context.Context, *anypb.Any) (*anypb.Any, error) UserRemoveRole(context.Context, *anypb.Any) (*anypb.Any, error) UserGet(context.Context, *anypb.Any) (*anypb.Any, error) UserGetRoles(context.Context, *anypb.Any) (*anypb.Any, error) UserRoleSave(context.Context, *anypb.Any) (*anypb.Any, error) // contains filtered or unexported methods }
UserGsrvServer is the server API for UserGsrv service. All implementations must embed UnimplementedUserGsrvServer for forward compatibility
type UserProfile ¶
type UserProfile struct { PhoneNo string `protobuf:"bytes,1,opt,name=phone_no,json=phoneNo,proto3" json:"phone_no,omitempty"` // contains filtered or unexported fields }
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetPhoneNo ¶
func (x *UserProfile) GetPhoneNo() string
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string
type UserRole ¶
type UserRole struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Role *v1.Role `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UserRole) Descriptor
deprecated
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message