user_v1

package
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetDeviceToken

func (x *Auth) GetDeviceToken() string

func (*Auth) GetId

func (x *Auth) GetId() string

func (*Auth) GetPassword

func (x *Auth) GetPassword() string

func (*Auth) GetToken

func (x *Auth) GetToken() string

func (*Auth) GetUsername

func (x *Auth) GetUsername() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

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) UserGet

func (UnimplementedUserGsrvServer) UserGetRoles

func (UnimplementedUserGsrvServer) UserProfileSave

func (UnimplementedUserGsrvServer) UserRemoveRole

func (UnimplementedUserGsrvServer) UserRoleSave

func (UnimplementedUserGsrvServer) UserSave

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetProfiles

func (x *User) GetProfiles() []*UserProfile

func (*User) GetRoles

func (x *User) GetRoles() []*v1.Role

func (*User) GetUsername

func (x *User) GetUsername() string

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

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetId

func (x *UserRole) GetId() string

func (*UserRole) GetRole

func (x *UserRole) GetRole() *v1.Role

func (*UserRole) GetUser

func (x *UserRole) GetUser() *User

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

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

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

Jump to

Keyboard shortcuts

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